| @@ 281-289 (lines=9) @@ | ||
| 278 | $path = $this->path; |
|
| 279 | } |
|
| 280 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 281 | if (!$exists) { |
|
| 282 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( |
|
| 283 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 284 | )); |
|
| 285 | } else { |
|
| 286 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, array( |
|
| 287 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 288 | )); |
|
| 289 | } |
|
| 290 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, array( |
|
| 291 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 292 | )); |
|
| @@ 608-616 (lines=9) @@ | ||
| 605 | * @param string $path |
|
| 606 | */ |
|
| 607 | protected function emit_file_hooks_post($exists, $path) { |
|
| 608 | if (!$exists) { |
|
| 609 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, array( |
|
| 610 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 611 | )); |
|
| 612 | } else { |
|
| 613 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, array( |
|
| 614 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 615 | )); |
|
| 616 | } |
|
| 617 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, array( |
|
| 618 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 619 | )); |
|