| @@ 259-269 (lines=11) @@ | ||
| 256 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 257 | $run = true; |
|
| 258 | ||
| 259 | if (!$exists) { |
|
| 260 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 261 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 262 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 263 | )); |
|
| 264 | } else { |
|
| 265 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 266 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 267 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 268 | )); |
|
| 269 | } |
|
| 270 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 271 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 272 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| @@ 609-619 (lines=11) @@ | ||
| 606 | * @param bool $run |
|
| 607 | */ |
|
| 608 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 609 | if (!$exists) { |
|
| 610 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 611 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 612 | Filesystem::signal_param_run => &$run, |
|
| 613 | )); |
|
| 614 | } else { |
|
| 615 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 616 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 617 | Filesystem::signal_param_run => &$run, |
|
| 618 | )); |
|
| 619 | } |
|
| 620 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 621 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 622 | Filesystem::signal_param_run => &$run, |
|