From: Robin Appelman Date: Thu, 29 Aug 2013 13:31:03 +0000 (+0200) Subject: also emmit create hook when creating new files using touch() X-Git-Tag: v6.0.0alpha2~245^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e;p=nextcloud-server.git also emmit create hook when creating new files using touch() --- diff --git a/lib/files/view.php b/lib/files/view.php index bb737f19ef8..8aee12bf6fe 100644 --- a/lib/files/view.php +++ b/lib/files/view.php @@ -249,6 +249,7 @@ class View { $hooks = array('touch'); if (!$this->file_exists($path)) { + $hooks[] = 'create'; $hooks[] = 'write'; } $result = $this->basicOperation('touch', $path, $hooks, $mtime);