|
-
March 20th, 2006, 07:36 AM
#1
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.
-
March 22nd, 2006, 06:17 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|