| @@ 646-654 (lines=9) @@ | ||
| 643 | protected function emit_file_hooks_post($exists, $path) { |
|
| 644 | // A post event so no before event args required |
|
| 645 | return $this->emittingCall(function () use (&$exists, &$path) { |
|
| 646 | if (!$exists) { |
|
| 647 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 648 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 649 | ]); |
|
| 650 | } else { |
|
| 651 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 652 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 653 | ]); |
|
| 654 | } |
|
| 655 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 656 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 657 | ]); |
|
| @@ 365-373 (lines=9) @@ | ||
| 362 | $path = $this->path; |
|
| 363 | } |
|
| 364 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 365 | if (!$exists) { |
|
| 366 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 367 | Filesystem::signal_param_path => $hookPath |
|
| 368 | ]); |
|
| 369 | } else { |
|
| 370 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 371 | Filesystem::signal_param_path => $hookPath |
|
| 372 | ]); |
|
| 373 | } |
|
| 374 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 375 | Filesystem::signal_param_path => $hookPath |
|
| 376 | ]); |
|