Check the permissions of the folder, correct them, then rerun your script :-)
Seriously: which ownership runs your script under? which ownership/permissions are set on the folder?
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz
In reply to Re: Permission denied to delete an empty folder
by bronto
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self
by Nelly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |