Merge pull request #4643 from owncloud/touch-newfile-hook
also emmit create hook when creating new files using touch()
This commit is contained in:
commit
2cfcf0083f
|
@ -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…
Reference in New Issue