summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-05 22:13:50 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-05 22:13:50 -0400
commit837eb1871d9b99fce32a418dd13284edfc41a398 (patch)
treeeef3abab36c1cdd720fda44d8e12b48cb1c28c88 /lib/files.php
parenta5211e31bc170f44edce3c80df831e7705e93396 (diff)
downloadnextcloud-server-837eb1871d9b99fce32a418dd13284edfc41a398.tar.gz
nextcloud-server-837eb1871d9b99fce32a418dd13284edfc41a398.zip
Don't delete the file anymore to replace it in the UI, just overwrite it
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php
index b8af5e04b71..00cbc63aba0 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -202,7 +202,7 @@ class OC_Files {
* @param file $target
*/
public static function move($sourceDir,$source,$targetDir,$target){
- if(OC_User::isLoggedIn() && ($sourceDir != '' || $source != 'Shared') && !OC_Filesystem::file_exists($targetDir.'/'.$target)){
+ if(OC_User::isLoggedIn() && ($sourceDir != '' || $source != 'Shared')){
$targetFile=self::normalizePath($targetDir.'/'.$target);
$sourceFile=self::normalizePath($sourceDir.'/'.$source);
return OC_Filesystem::rename($sourceFile,$targetFile);