Skip to content

Commit 57e3cd6

Browse files
committed
use copy and unlink instead of rename. Might be universally the better option for all environments (i.e. NFS)
1 parent 552847e commit 57e3cd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/lib/classes/system.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,10 @@ function copy($file1, $file2) {
935935
}
936936

937937
function move($file1, $file2) {
938-
return rename($file1, $file2);
938+
return copy($file1, $file2);
939+
if(file_exists($file1) || is_link($file1)) {
940+
return unlink($file1);
941+
}
939942
}
940943

941944
function touch($file, $allow_symlink = false){

0 commit comments

Comments
 (0)