in reply to Need to delete empty directories.
use File::Find; my @dirs; my @search_dirs = qw(. ..); find(\&wanted, @search_dirs); sub wanted { -d && push @dirs, $File::Find::name } # do sm.th. with directories in @dirs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Need to delete empty directories.
by sashac88 (Beadle) on Mar 09, 2005 at 13:02 UTC | |
by sh1tn (Priest) on Mar 09, 2005 at 13:56 UTC |