| @@ 642-650 (lines=9) @@ | ||
| 639 | protected function emit_file_hooks_post($exists, $path) { |
|
| 640 | // A post event so no before event args required |
|
| 641 | return $this->emittingCall(function () use (&$exists, &$path){ |
|
| 642 | if (!$exists) { |
|
| 643 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 644 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 645 | ]); |
|
| 646 | ||
| 647 | } else { |
|
| 648 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 649 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 650 | ]); |
|
| 651 | } |
|
| 652 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 653 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| @@ 322-330 (lines=9) @@ | ||
| 319 | $path = $this->path; |
|
| 320 | } |
|
| 321 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 322 | if (!$exists) { |
|
| 323 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, [ |
|
| 324 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 325 | ]); |
|
| 326 | } else { |
|
| 327 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, [ |
|
| 328 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 329 | ]); |
|
| 330 | } |
|
| 331 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, [ |
|
| 332 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 333 | ]); |
|