| @@ 219-229 (lines=11) @@ | ||
| 216 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 217 | $run = true; |
|
| 218 | ||
| 219 | if (!$exists) { |
|
| 220 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 221 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 222 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 223 | )); |
|
| 224 | } else { |
|
| 225 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 226 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 227 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 228 | )); |
|
| 229 | } |
|
| 230 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 231 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 232 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| @@ 496-506 (lines=11) @@ | ||
| 493 | * @param bool $run |
|
| 494 | */ |
|
| 495 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 496 | if (!$exists) { |
|
| 497 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 498 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 499 | Filesystem::signal_param_run => &$run, |
|
| 500 | )); |
|
| 501 | } else { |
|
| 502 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 503 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 504 | Filesystem::signal_param_run => &$run, |
|
| 505 | )); |
|
| 506 | } |
|
| 507 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 508 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 509 | Filesystem::signal_param_run => &$run, |
|