diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-05 22:13:50 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-05 22:13:50 -0400 |
commit | 837eb1871d9b99fce32a418dd13284edfc41a398 (patch) | |
tree | eef3abab36c1cdd720fda44d8e12b48cb1c28c88 /lib/filecache.php | |
parent | a5211e31bc170f44edce3c80df831e7705e93396 (diff) | |
download | nextcloud-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/filecache.php')
-rw-r--r-- | lib/filecache.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/filecache.php b/lib/filecache.php index 364b908bcfa..811e8a3e6a2 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -155,6 +155,10 @@ class OC_FileCache{ if($root===false){ $root=OC_Filesystem::getRoot(); } + // If replacing an existing file, delete the file + if (self::inCache($newPath, $root)) { + self::delete($newPath, $root); + } $oldPath=$root.$oldPath; $newPath=$root.$newPath; $newParent=self::getParentId($newPath); |