| @@ 639-647 (lines=9) @@ | ||
| 636 | protected function emit_file_hooks_post($exists, $path) { |
|
| 637 | // A post event so no before event args required |
|
| 638 | return $this->emittingCall(function () use (&$exists, &$path) { |
|
| 639 | if (!$exists) { |
|
| 640 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, [ |
|
| 641 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 642 | ]); |
|
| 643 | } else { |
|
| 644 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
| 645 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 646 | ]); |
|
| 647 | } |
|
| 648 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
| 649 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 650 | ]); |
|
| @@ 345-353 (lines=9) @@ | ||
| 342 | $path = $this->path; |
|
| 343 | } |
|
| 344 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 345 | if (!$exists) { |
|
| 346 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, [ |
|
| 347 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 348 | ]); |
|
| 349 | } else { |
|
| 350 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, [ |
|
| 351 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 352 | ]); |
|
| 353 | } |
|
| 354 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, [ |
|
| 355 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 356 | ]); |
|