Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-16 05:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found