Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: rmtree deletes everything inside the folder but doesn't deletes the root folder him self

by Anonymous Monk
on Oct 15, 2011 at 00:12 UTC ( #931603=note: print w/replies, xml ) Need Help??


in reply to Re: rmtree deletes everything inside the folder but doesn't deletes the root folder him self
in thread rmtree deletes everything inside the folder but doesn't deletes the root folder him self

You need to select the "no_chdir" option so it doesn't change to the directory you're acting on: find({ wanted => \&process, no_chdir => 1 }, '.');
  • Comment on Re^2: rmtree deletes everything inside the folder but doesn't deletes the root folder him self

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://931603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-06-03 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (17 votes). Check out past polls.

    Notices?