| @@ 255-265 (lines=11) @@ | ||
| 252 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 253 | $run = true; |
|
| 254 | ||
| 255 | if (!$exists) { |
|
| 256 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 257 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 258 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 259 | )); |
|
| 260 | } else { |
|
| 261 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 262 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 263 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 264 | )); |
|
| 265 | } |
|
| 266 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 267 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 268 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| @@ 586-596 (lines=11) @@ | ||
| 583 | * @param bool $run |
|
| 584 | */ |
|
| 585 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 586 | if (!$exists) { |
|
| 587 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 588 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 589 | Filesystem::signal_param_run => &$run, |
|
| 590 | )); |
|
| 591 | } else { |
|
| 592 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 593 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 594 | Filesystem::signal_param_run => &$run, |
|
| 595 | )); |
|
| 596 | } |
|
| 597 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 598 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 599 | Filesystem::signal_param_run => &$run, |
|