summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-08-29 15:31:03 +0200
committerRobin Appelman <icewind@owncloud.com>2013-08-29 15:31:03 +0200
commit1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e (patch)
tree8e5b9672541bc3cadb7a86868ff9f2833eacd5dd
parent301cce54ccdc1dcd1bd63bf4285e870e300979b7 (diff)
downloadnextcloud-server-1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e.tar.gz
nextcloud-server-1fa29b4c118b848fb3e0e6cdb6aa7bb88cb9d62e.zip
also emmit create hook when creating new files using touch()
-rw-r--r--lib/files/view.php1
1 files changed, 1 insertions, 0 deletions
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);