Can't delete empty directory
Posted on 1998-02-13
I've created a function that will delete recursively a directory tree; well that is what it is suppose to do. I am able to delete all the files within the directoy tree but I cannot delete the directories.
Here is the part of the code that is not working:
/* First I store the address\name of the current directory*/
/* Then I set that directory as the current directory to search recursively*/
/* Recursive function that deletes the files and directories under the current directory*/
/* After it returns I go back to the previous directory */
/* Then I attempt to delete the directory */
The RemoveDirectory() function returns an:
after I use GetLastError.
Is it that the directoy remains opened?