Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Need to delete empty directories.

by merlyn (Sage)
on Mar 09, 2005 at 14:56 UTC ( [id://437918]=note: print w/replies, xml ) Need Help??


in reply to Need to delete empty directories.

use File::Finder; File::Finder->depth->eval{ sub { rmdir } )->in(@your_top_level_dirs);
Just ignore the errors you get when it's not empty, and make sure you do it in depth-order first.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found