Subject: | in cygwin and windows rmtree does not report any error if directory does not exist |
Date: | Fri, 10 Oct 2008 17:53:20 +0400 |
To: | bug-File-Path [...] rt.cpan.org |
From: | Dmitry Bolshakov <dmitry.bolshakov [...] bridge-quest.com> |
$ uname -a
CYGWIN_NT-5.1 bolshakovxp 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
$ perl -v
This is perl, v5.10.0 built for cygwin-thread-multi-64int
(with 6 registered patches, see perl -V for more detail)
$ perl -MFile::Path -e "print \$File::Path::VERSION"
2.04
-----
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\bdimych>perl -v
This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 5 registered patches, see perl -V for more detail)
C:\Documents and Settings\bdimych>perl -MFile::Path -e "print
$File::Path::VERSION"
2.04
-----
use File::Path;
use Data::Dumper;
rmtree "aaaaa", {error => \my $err};
print Dumper $err;
<STDIN>;
outputs
$VAR1 = [];
--
With best regards
Dmitry Bolshakov