| @@ 518-526 (lines=9) @@ | ||
| 515 | * @param string $path |
|
| 516 | */ |
|
| 517 | protected function emit_file_hooks_post($exists, $path) { |
|
| 518 | if (!$exists) { |
|
| 519 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, array( |
|
| 520 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 521 | )); |
|
| 522 | } else { |
|
| 523 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, array( |
|
| 524 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 525 | )); |
|
| 526 | } |
|
| 527 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, array( |
|
| 528 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 529 | )); |
|
| @@ 250-258 (lines=9) @@ | ||
| 247 | $path = $this->path; |
|
| 248 | } |
|
| 249 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 250 | if (!$exists) { |
|
| 251 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( |
|
| 252 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 253 | )); |
|
| 254 | } else { |
|
| 255 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, array( |
|
| 256 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 257 | )); |
|
| 258 | } |
|
| 259 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, array( |
|
| 260 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 261 | )); |
|