- or download this
finddepth sub {(!-d or /^.{1,2}$/)||rmdir($_)},@ARGV;
- or download this
use File::Find;
finddepth sub {(!-d or /^.{1,2}$/);rmdir},@ARGV;
- or download this
use File::Find;
finddepth sub {(!-d or /^.{1,2}$/);rmdir;
warn $File::Find::name,$! if $! =~ /not empty/},@ARGV;