![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re: Find Empty directories and removing itby Tanktalus (Canon) |
on Jan 04, 2006 at 05:02 UTC ( #520793=note: print w/replies, xml ) | Need Help?? |
Just remove them. If they're not empty, rmdir will fail. In this case, you don't care that it fails, ignore the error, and keep going.
Update: added 'depth' as per merlyn's correction.
In Section
Seekers of Perl Wisdom
|
|