| @@ 226-236 (lines=11) @@ | ||
| 223 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 224 | $run = true; |
|
| 225 | ||
| 226 | if (!$exists) { |
|
| 227 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 228 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 229 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 230 | )); |
|
| 231 | } else { |
|
| 232 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 233 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 234 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 235 | )); |
|
| 236 | } |
|
| 237 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 238 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 239 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| @@ 528-538 (lines=11) @@ | ||
| 525 | * @param bool $run |
|
| 526 | */ |
|
| 527 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 528 | if (!$exists) { |
|
| 529 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 530 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 531 | Filesystem::signal_param_run => &$run, |
|
| 532 | )); |
|
| 533 | } else { |
|
| 534 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 535 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 536 | Filesystem::signal_param_run => &$run, |
|
| 537 | )); |
|
| 538 | } |
|
| 539 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 540 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 541 | Filesystem::signal_param_run => &$run, |
|