summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-18 14:45:13 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-18 14:45:13 +0200
commitd7960d5db644b574fb7255b94f139c2c035b1a68 (patch)
tree9947677c6576f1c0c723f25c757251f5be2b71a7 /lib
parent2a50dbd1a12ac9691513881c43006affba01f921 (diff)
downloadnextcloud-server-d7960d5db644b574fb7255b94f139c2c035b1a68.tar.gz
nextcloud-server-d7960d5db644b574fb7255b94f139c2c035b1a68.zip
dont update the cache on rename fail
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/view.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 20bba094e0a..2297221408b 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -683,7 +683,7 @@ class View {
if ((Cache\Scanner::isPartialFile($path1) && !Cache\Scanner::isPartialFile($path2)) && $result !== false) {
// if it was a rename from a part file to a regular file it was a write and not a rename operation
$this->updater->update($path2);
- } else {
+ } else if ($result) {
if ($internalPath1 !== '') { // dont do a cache update for moved mounts
$this->updater->rename($path1, $path2);
} else { // only do etag propagation