plz suggest . i am stuck


________________________________
From: Irfan Sayed <irfan_sayed2...@yahoo.com>
To: Perl Beginners <beginners@perl.org>
Sent: Friday, June 24, 2011 3:13 PM
Subject: rmdir




hi,
i need to delete some directories recursively which are present at some shared 
location 

i tried file::path perl module but the issue with that module is , it is not 
deleting the root/parent dir

it deletes the subdirectories and all the files inside that but not removing 
root dir

here is my code:
 $path = "\\\\build\\" . "f\$" . 
"\\Store\\build\\Internal_Builds\\Daily_Builds\\Daily\\zoc\\" . $hash_fin{$key};
  
 print "$path\n";
 print "**********\n";
  remove_tree($path,{verbose => 1,safe => 1,keep_root => 0});

now whaat i expect is , module shud delete the dir which is there in $path but 
it does not
plz suggest 


regards
irfan

Reply via email to