in reply to Permission denied to delete an empty folder
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self

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
  • Comment on Re: Permission denied to delete an empty folder

Replies are listed 'Best First'.
Re: Re: Permission denied to delete an empty folder
by Nelly (Novice) on Apr 28, 2004 at 11:27 UTC
    Thanks for replying, but how can I do it, "Check the permissions of the folder, correct them"
    I'm new in perl,excuse me if it's very obvious!

      Nelly, detail your question. What operating system are you using? Can you show a little snippet of your script?

      See also the other replies, e.g.: are you running your script under the same directory you are trying to delete?

      Thanks

      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