From: kvr@centrum.cz (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-37091-120348.17.
8280334480876@perl.org>
p4raw-id: //depot/perl@25362
use strict;
use warnings;
-our $VERSION = "1.07_01";
+our $VERSION = "1.08";
our @ISA = qw( Exporter );
our @EXPORT = qw( mkpath rmtree );
unless (mkdir($path,$mode)) {
my $e = $!;
# allow for another process to have created it meanwhile
- croak ("mkdir $path: $e") unless -d $path;
+ $! = $e, croak ("mkdir $path: $e") unless -d $path;
}
push(@created, $path);
}