From d7960d5db644b574fb7255b94f139c2c035b1a68 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 18 Jun 2015 14:45:13 +0200 Subject: [PATCH] dont update the cache on rename fail --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 20bba094e0..2297221408 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