X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FFile%2FPath.pm;h=46f360a4615951644a723892c6e4db5c8e4f9df5;hb=72503137b2e9ea029110e27e896f6f1ccd8c0e8a;hp=79fdfb6ca1e0ccaa924b76179334747311a8837e;hpb=1b1e14d34a33bfe0df591910cafcab54421ca8a8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/File/Path.pm b/lib/File/Path.pm index 79fdfb6..46f360a 100644 --- a/lib/File/Path.pm +++ b/lib/File/Path.pm @@ -73,7 +73,7 @@ than VMS is settled. (defaults to FALSE) =back It returns the number of files successfully deleted. Symlinks are -treated as ordinary files. +simply deleted and not followed. B If the third parameter is not TRUE, C is B in the face of failure or interruption. Files and directories which @@ -205,7 +205,9 @@ sub rmtree { } else { if ($safe && - ($Is_VMS ? !&VMS::Filespec::candelete($root) : !-w $root)) { + ($Is_VMS ? !&VMS::Filespec::candelete($root) + : !(-l $root || -w $root))) + { print "skipped $root\n" if $verbose; next; }