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

also emmit create hook when creating new files using touch()
This commit is contained in:
Thomas Müller 2013-08-29 08:37:46 -07:00
commit 2cfcf0083f
1 changed files with 1 additions and 0 deletions

View File

@ -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);