
mathewhai
New User
Feb 12, 2010, 5:49 AM
Post #1 of 1
(7120 views)
|
rmdir of File::Path with keep_root => 1 is not working in LINUX
|
Can't Post
|
|
Hi, I want to delete the subdirectories under a parent directory. I used rmdir of the File::Path module with the option keep_root => 1. But the parent directory also got deleted in LINUX. In Windows the same code works fine. How can I delete only the sub directories in Linux using perl? Any inputs are welcome
rmtree("/user/mathew/sop",{keep_root => 1}); sop folder also got deleted.
|