From 1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 29 Aug 2013 15:31:03 +0200 Subject: [PATCH] also emmit create hook when creating new files using touch() --- lib/files/view.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5