What does NTSTATUS 0x80000006 (STATUS_NO_MORE_FILES) mean?

 
Previous Next
STATUS_BUFFER_OVERFLOW STATUS_WAKE_SYSTEM_DEBUGGER

STATUS_NO_MORE_FILES

The file enumeration has no more matching entries

This warning is the normal terminal condition for a directory or file enumeration. It says the current enumeration cursor has no more entries matching the request; it is not evidence that the directory is invalid or that the volume failed.

The distinction matters for code that wraps native enumeration APIs: the loop should stop cleanly, while unexpected errors such as access denied or invalid handle should still be reported.

What to inspect

  • Stop the enumeration loop rather than retrying the same cursor indefinitely.
  • Check whether filters or patterns excluded entries before assuming the directory is empty.
  • For change tracking, combine enumeration with notification or USN journal state when needed.

References


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