mirror of
https://github.com/nextcloud/server.git
synced 2024-08-31 17:55:18 +02:00
also emmit create hook when creating new files using touch()
This commit is contained in:
parent
301cce54cc
commit
1fa29b4c11
@ -249,6 +249,7 @@ class View {
|
|||||||
$hooks = array('touch');
|
$hooks = array('touch');
|
||||||
|
|
||||||
if (!$this->file_exists($path)) {
|
if (!$this->file_exists($path)) {
|
||||||
|
$hooks[] = 'create';
|
||||||
$hooks[] = 'write';
|
$hooks[] = 'write';
|
||||||
}
|
}
|
||||||
$result = $this->basicOperation('touch', $path, $hooks, $mtime);
|
$result = $this->basicOperation('touch', $path, $hooks, $mtime);
|
||||||
|
Loading…
Reference in New Issue
Block a user