CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
rmdir of File::Path with keep_root => 1 is not working in LINUX

 



mathewhai
New User

Feb 12, 2010, 5:49 AM

Post #1 of 1 (4170 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

Code
rmtree("/user/mathew/sop",{keep_root => 1}); 
sop folder also got deleted.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives