Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: File::Find help

by tybalt89 (Prior)
on Dec 02, 2017 at 15:02 UTC ( #1204739=note: print w/replies, xml ) Need Help??


in reply to File::Find help

use File::Find; finddepth sub { -d $_ and rmdir $_ }, "yourtopoftree";

should work to remove empty directories.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2020-10-01 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (25 votes). Check out past polls.

    Notices?