| @@ 519-527 (lines=9) @@ | ||
| 516 | * @param string $path |
|
| 517 | */ |
|
| 518 | protected function emit_file_hooks_post($exists, $path) { |
|
| 519 | if (!$exists) { |
|
| 520 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, array( |
|
| 521 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 522 | )); |
|
| 523 | } else { |
|
| 524 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, array( |
|
| 525 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 526 | )); |
|
| 527 | } |
|
| 528 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, array( |
|
| 529 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 530 | )); |
|
| @@ 262-270 (lines=9) @@ | ||
| 259 | $path = $this->path; |
|
| 260 | } |
|
| 261 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 262 | if (!$exists) { |
|
| 263 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( |
|
| 264 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 265 | )); |
|
| 266 | } else { |
|
| 267 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, array( |
|
| 268 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 269 | )); |
|
| 270 | } |
|
| 271 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, array( |
|
| 272 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 273 | )); |
|