| Previous | Next |
| IMAPI_E_FILE_NOT_FOUND | IMAPI_E_IMAGE_SIZE_LIMIT |
IMAPI_E_DIR_NOT_FOUND
IMAPI_E_DIR_NOT_FOUND reports that IMAPI2FS cannot locate a directory required by the operation. For AddTree and related hierarchy methods, parent directories in the image must already exist. The error is about the destination image hierarchy even when a similarly named directory exists on the local disk.
Verify every parent component in the image tree
- Record the current
IFsiDirectoryItemcontext and the path argument supplied to the method. - Walk the image hierarchy component by component to identify the first missing directory.
- Check whether a previous remove, rollback, or failed add operation prevented creation of the expected parent.
The correct recovery is to create or select the missing image directory in the right order. Creating the source directory on disk will not repair a missing destination parent. For complex builders, keep a mapping from logical image paths to IMAPI directory items and invalidate it after tree removals or rollback. That makes a stale cached parent reference easier to detect before a later insertion fails.
AddTree · AddDirectory · IFsiDirectoryItem
Looking for a different code? Search another status or error code.