CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    8

    Exclamation DIRECOTRY_NOT_EMPTY when trying to delete an empty directory

    Hi,

    I have a file system filter driver that sets the delete flag for a file to be deleted. when iam trying to delete a directory recursively, iam getting an error saying that DIRECTORY_NOT_EMPTY in the end, when directory has no more files to delete.

    I suspect that there are some open handles to the deleted files, because of which they are not getting deleted even though i execute ZwClose.

    please advice.

  2. #2
    Join Date
    Mar 2006
    Posts
    8

    Re: DIRECOTRY_NOT_EMPTY when trying to delete an empty directory

    Hi,

    I feel that there might be some handle leak some where for a file inside the directory, because of which the file doesnt get deleted and ultimately leads to failure of Directory deletion.

    Is there any Windows API that will get me the number of open handles that a file or directory is cuurently having.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured