Hi Sisyphus,

Tuesday, September 6, 2005, 5:38:38 PM, you wrote:

S> Indeed I do .... problems like this always arise from the "other" change
S> that one has made (ie the change that one has forgotten about :-)

Definitely been there :-]

While not directly in response to your question, I vote for using rmtree
in File::Path (a core module - at least in 5.8.*)

http://search.cpan.org/~nwclark/perl-5.8.7/lib/File/Path.pm

eval { rmtree($dir) };
if ($@) {
   print "Could not delete $dir: $@";
}

Except for the race condition issue with other processes altering
files and directories below the root directory (which does not seem to
be an issue in your situation), it's more portable, does not use an outside
process, and allows you to actually remove a list of directories in
one call.

-- 
Best regards,
 Christopher                            mailto:[EMAIL PROTECTED]

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to