summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-01-20 12:59:57 +0100
committerRobin Appelman <icewind@owncloud.com>2015-01-29 15:39:56 +0100
commit2124540d1d9f500423e5149b1490ed489788ff1d (patch)
tree4fc91496246e020c477557e1e4133e689cb59c29 /lib/private
parent65ec950b27d625b8184fbff28ecb7778f55415d9 (diff)
downloadnextcloud-server-2124540d1d9f500423e5149b1490ed489788ff1d.tar.gz
nextcloud-server-2124540d1d9f500423e5149b1490ed489788ff1d.zip
Dont remove a file from cache if the delete operation failed
Diffstat (limited to 'lib/private')
-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 a2717ce4321..5ed7af9222c 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -803,7 +803,7 @@ class View {
$result = \OC_FileProxy::runPostProxies($operation, $this->getAbsolutePath($path), $result);
- if (in_array('delete', $hooks)) {
+ if (in_array('delete', $hooks) and $result) {
$this->updater->remove($path);
}
if (in_array('write', $hooks)) {