From 2124540d1d9f500423e5149b1490ed489788ff1d Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 20 Jan 2015 12:59:57 +0100 Subject: Dont remove a file from cache if the delete operation failed --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private') 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)) { -- cgit v1.2.3