| @@ 252-260 (lines=9) @@ | ||
| 249 | $path = $this->path; |
|
| 250 | } |
|
| 251 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 252 | if (!$exists) { |
|
| 253 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_create, array( |
|
| 254 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 255 | )); |
|
| 256 | } else { |
|
| 257 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_update, array( |
|
| 258 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 259 | )); |
|
| 260 | } |
|
| 261 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_post_write, array( |
|
| 262 | \OC\Files\Filesystem::signal_param_path => $hookPath |
|
| 263 | )); |
|
| @@ 550-558 (lines=9) @@ | ||
| 547 | * @param string $path |
|
| 548 | */ |
|
| 549 | protected function emit_file_hooks_post($exists, $path) { |
|
| 550 | if (!$exists) { |
|
| 551 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_create, array( |
|
| 552 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 553 | )); |
|
| 554 | } else { |
|
| 555 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_update, array( |
|
| 556 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 557 | )); |
|
| 558 | } |
|
| 559 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_post_write, array( |
|
| 560 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 561 | )); |
|