| @@ 254-264 (lines=11) @@ | ||
| 251 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 252 | $run = true; |
|
| 253 | ||
| 254 | if (!$exists) { |
|
| 255 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 256 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 257 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 258 | )); |
|
| 259 | } else { |
|
| 260 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 261 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 262 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 263 | )); |
|
| 264 | } |
|
| 265 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 266 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 267 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| @@ 573-583 (lines=11) @@ | ||
| 570 | * @param bool $run |
|
| 571 | */ |
|
| 572 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 573 | if (!$exists) { |
|
| 574 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 575 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 576 | Filesystem::signal_param_run => &$run, |
|
| 577 | )); |
|
| 578 | } else { |
|
| 579 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 580 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 581 | Filesystem::signal_param_run => &$run, |
|
| 582 | )); |
|
| 583 | } |
|
| 584 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 585 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 586 | Filesystem::signal_param_run => &$run, |
|