What does Windows error code 336 (ERROR_DIRECTORY_NOT_SUPPORTED) mean?

 
Could be also:
ConstantTypeOS
TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAKBugCheck CodeWindows
Previous Next
ERROR_COMPRESSED_FILE_NOT_SUPPORTED ERROR_NOT_READ_FROM_COPY

ERROR_DIRECTORY_NOT_SUPPORTED

The operation is not valid for a directory

ERROR_DIRECTORY_NOT_SUPPORTED means the target handle or path identifies a directory, but the requested file-system operation applies only to regular files or another object type.

Checks

  • Determine whether the path was expected to be a file.
  • Inspect attributes after following or not following reparse points as intended.
  • Separate directory maintenance from file-data operations.
  • Validate object type before issuing specialized control codes.

Resolution

Choose the API designed for directories or apply the operation only to eligible files. Reopening the same directory with different access rights will not add unsupported semantics.

References


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