Merge pull request #4643 from owncloud/touch-newfile-hook

also emmit create hook when creating new files using touch()
remotes/origin/stable6
Thomas Müller 13 years ago
commit 2cfcf0083f
  1. 1
      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);

Loading…
Cancel
Save