| @@ 595-603 (lines=9) @@ | ||
| 592 | * @param string $path |
|
| 593 | */ |
|
| 594 | protected function emit_file_hooks_post($exists, $path) { |
|
| 595 | if (!$exists) { |
|
| 596 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 597 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 598 | ]); |
|
| 599 | } else { |
|
| 600 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 601 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 602 | ]); |
|
| 603 | } |
|
| 604 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 605 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 606 | ]); |
|
| @@ 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 | ]); |
|