mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
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
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue