What does Windows error code 267 (ERROR_DIRECTORY) mean?

 
Could be also:
ConstantTypeOS
STATUS_NOTIFY_CLEANUPNTSTATUSWindows
DFSC_FILE_SYSTEMBugCheck CodeWindows
Previous Next
ERROR_CANNOT_COPY ERROR_EAS_DIDNT_FIT

ERROR_DIRECTORY

The directory path is invalid

ERROR_DIRECTORY indicates that an operation requiring a directory received a path that is not a valid directory in the current context. A component may be a file, missing, malformed, or incompatible with the API.

What to check

  • Inspect every path component, not only the final name.
  • Check whether a file was created where a directory was expected.
  • Resolve relative paths against the actual working directory.
  • Handle reparse points according to the operation's security requirements.

How to handle it

Correct the path or create the intended directory when appropriate. Avoid deleting an unexpected file automatically because it may contain user data.

References


Looking for a different code? Search another status or error code.