| @@ 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 | )); |
|
| @@ 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 | )); |
|