| @@ 285-293 (lines=9) @@ | ||
| 282 | $path = $this->path; |
|
| 283 | } |
|
| 284 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 285 | if (!$exists) { |
|
| 286 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( |
|
| 287 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 288 | )); |
|
| 289 | } else { |
|
| 290 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, array( |
|
| 291 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 292 | )); |
|
| 293 | } |
|
| 294 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, array( |
|
| 295 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 296 | )); |
|
| @@ 631-639 (lines=9) @@ | ||
| 628 | * @param string $path |
|
| 629 | */ |
|
| 630 | protected function emit_file_hooks_post($exists, $path) { |
|
| 631 | if (!$exists) { |
|
| 632 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, array( |
|
| 633 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 634 | )); |
|
| 635 | } else { |
|
| 636 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, array( |
|
| 637 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 638 | )); |
|
| 639 | } |
|
| 640 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, array( |
|
| 641 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 642 | )); |
|