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

Commit afe1547

Browse files
committed
Do not silently rename, allow exceptions/error to be caught.
1 parent 5774112 commit afe1547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/access.fs/FsAccessDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,7 @@ public function rename($originalNode, $dest = null, $filename_new = null)
20792079
throw new PydioException($mess[100]." ".$originalNode->getPath());
20802080
}
20812081
Controller::applyHook("node.before_path_change", [&$originalNode]);
2082-
$test = @rename($originalNode->getUrl(),$newNode->getUrl());
2082+
$test = rename($originalNode->getUrl(),$newNode->getUrl());
20832083
if($test === false){
20842084
throw new \Exception("Error while renaming ".$originalNode->getPath()." to ".$newNode->getPath());
20852085
}

0 commit comments

Comments
 (0)