in reply to Re:x2 deleting windows subdirectories
in thread deleting windows subdirectories
The if(-f) prevents you from deleting anything but files. That means the directories are left alone. True, I should have a die, but it does work, and I use similar code regularly.unless(-f){ unlink $File::Find::name; }
|
|---|