diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index a909cf467695c..299f1e3df9952 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1195,13 +1195,13 @@ private function basicOperation($operation, $path, $hooks = [], $extraParam = nu throw $e; } - if ($result && in_array('delete', $hooks)) { + if ($result !== false && in_array('delete', $hooks)) { $this->removeUpdate($storage, $internalPath); } - if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') { + if ($result !== false && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') { $this->writeUpdate($storage, $internalPath); } - if ($result && in_array('touch', $hooks)) { + if ($result !== false && in_array('touch', $hooks)) { $this->writeUpdate($storage, $internalPath, $extraParam); }