|No such thing as a small change|
Re: How can I Check the permissions of the folder,and correct them?by crabbdean (Pilgrim)
|on Apr 28, 2004 at 12:44 UTC||Need Help??|
Well I don't know your system but on Win32 its tricky. Here is how. Its actually a subroutine to check if a directory is empty and then remove it (of course you could just force it to remove it with the the "rmtree" command, but better to be safe).
Also uncomment the commented-out section if you want it to display the folder permissions mask before you alter them.
What I don't like about this code is that doing a directory listing to check if a directory is empty is slow, especially if a directory is large. There could be an easy command to do that that I'm simply not aware of (probable!).
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers