Skip to content

Commit

Permalink
Merge pull request #32 from jkeenan/master
Browse files Browse the repository at this point in the history
Restore pre-2.11 behavior of rmtree.
  • Loading branch information
rpcme committed Oct 1, 2015
2 parents 1ba6793 + aae4aa0 commit be9c02b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/File/Path.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BEGIN {

use Exporter ();
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
$VERSION = '2.11_003';
$VERSION = '2.11_004';
$VERSION = eval $VERSION;
@ISA = qw(Exporter);
@EXPORT = qw(mkpath rmtree);
Expand Down Expand Up @@ -344,8 +344,7 @@ sub _rmtree {
: $root;

my ( $ldev, $lino, $perm ) = ( lstat $root )[ 0, 1, 2 ]
or ( _error( $arg, "Cannot stat directory", $root ) and
next ROOT_DIR );
or next ROOT_DIR;

if ( -d _ ) {
$root = VMS::Filespec::vmspath( VMS::Filespec::pathify($root) )
Expand Down

0 comments on commit be9c02b

Please sign in to comment.