Skip to content

Commit

Permalink
Item13598: Fix rename of symlinked webs
Browse files Browse the repository at this point in the history
Use File::Copy::Recursive::rmove which does the right thing with
symlinks.
  • Loading branch information
gac410 committed Aug 24, 2015
1 parent 32898b1 commit 0d13447
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions PlainFileStoreContrib/lib/Foswiki/Store/PlainFile.pm
Expand Up @@ -1428,12 +1428,7 @@ sub _moveFile {
_mkPathTo($to);
my $ok;
my $efrom = _encode($from);
if ( -d $efrom ) {
$ok = File::Copy::Recursive::dirmove( $efrom, _encode($to) );
}
elsif ( -e $efrom ) {
$ok = File::Copy::move( $efrom, _encode($to) );
}
$ok = File::Copy::Recursive::rmove( $efrom, _encode($to) );
$ok or die "PlainFile: move $from to $to failed: $!";
}

Expand Down

0 comments on commit 0d13447

Please sign in to comment.