| @@ 604-612 (lines=9) @@ | ||
| 601 | * @param string $path |
|
| 602 | */ |
|
| 603 | protected function emit_file_hooks_post($exists, $path) { |
|
| 604 | if (!$exists) { |
|
| 605 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 606 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 607 | ]); |
|
| 608 | } else { |
|
| 609 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 610 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 611 | ]); |
|
| 612 | } |
|
| 613 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 614 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 615 | ]); |
|
| @@ 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 | ]); |
|