diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 19e3871780..21df67cf55 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1157,7 +1157,7 @@ class View { if ($result && in_array('delete', $hooks) and $result) { $this->removeUpdate($storage, $internalPath); } - if ($result && in_array('write', $hooks) and $operation !== 'fopen') { + if ($result && in_array('write', $hooks, true) && $operation !== 'fopen' && $operation !== 'touch') { $this->writeUpdate($storage, $internalPath); } if ($result && in_array('touch', $hooks)) {