@@ 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 | } else { |
|
647 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, [ |
|
648 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
649 | ]); |
|
650 | } |
|
651 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, [ |
|
652 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
653 | ]); |
@@ 364-372 (lines=9) @@ | ||
361 | $path = $this->path; |
|
362 | } |
|
363 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
364 | if (!$exists) { |
|
365 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, [ |
|
366 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
367 | ]); |
|
368 | } else { |
|
369 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, [ |
|
370 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
371 | ]); |
|
372 | } |
|
373 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, [ |
|
374 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
375 | ]); |