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