Permalink
Browse files

Do not silently rename, allow exceptions/error to be caught.

  • Loading branch information...
1 parent 5774112 commit afe154748688d4704ecb76b6465ff310f6c022ec @cdujeu cdujeu committed Oct 11, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/access.fs/FsAccessDriver.php
@@ -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());
}

0 comments on commit afe1547

Please sign in to comment.