Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Find Empty directories and removing itby merlyn (Sage) |
on Jan 04, 2006 at 05:33 UTC ( [id://520800]=note: print w/replies, xml ) | Need Help?? |
You have to use finddepth, not find, because you need to act on the current directory last. Consider a directory that is empty except for containing two other empty directories.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|