Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Do not silently rename, allow exceptions/error to be caught.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Oct 11, 2016
1 parent 5774112 commit afe1547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/plugins/access.fs/FsAccessDriver.php
Expand Up @@ -2079,7 +2079,7 @@ public function rename($originalNode, $dest = null, $filename_new = null)
throw new PydioException($mess[100]." ".$originalNode->getPath());
}
Controller::applyHook("node.before_path_change", [&$originalNode]);
$test = @rename($originalNode->getUrl(),$newNode->getUrl());
$test = rename($originalNode->getUrl(),$newNode->getUrl());
if($test === false){
throw new \Exception("Error while renaming ".$originalNode->getPath()." to ".$newNode->getPath());
}
Expand Down

0 comments on commit afe1547

Please sign in to comment.