| @@ 603-611 (lines=9) @@ | ||
| 600 | * @param string $path |
|
| 601 | */ |
|
| 602 | protected function emit_file_hooks_post($exists, $path) { |
|
| 603 | if (!$exists) { |
|
| 604 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 605 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 606 | ]); |
|
| 607 | } else { |
|
| 608 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 609 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 610 | ]); |
|
| 611 | } |
|
| 612 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 613 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 614 | ]); |
|
| @@ 296-304 (lines=9) @@ | ||
| 293 | $path = $this->path; |
|
| 294 | } |
|
| 295 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 296 | if (!$exists) { |
|
| 297 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, [ |
|
| 298 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 299 | ]); |
|
| 300 | } else { |
|
| 301 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, [ |
|
| 302 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 303 | ]); |
|
| 304 | } |
|
| 305 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, [ |
|
| 306 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 307 | ]); |
|