| @@ 497-507 (lines=11) @@ | ||
| 494 | * @param bool $run |
|
| 495 | */ |
|
| 496 | protected function emit_file_hooks_pre($exists, $path, &$run) { |
|
| 497 | if (!$exists) { |
|
| 498 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_create, array( |
|
| 499 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 500 | Filesystem::signal_param_run => &$run, |
|
| 501 | )); |
|
| 502 | } else { |
|
| 503 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_update, array( |
|
| 504 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 505 | Filesystem::signal_param_run => &$run, |
|
| 506 | )); |
|
| 507 | } |
|
| 508 | \OC_Hook::emit(Filesystem::CLASSNAME, Filesystem::signal_write, array( |
|
| 509 | Filesystem::signal_param_path => $this->getHookPath($path), |
|
| 510 | Filesystem::signal_param_run => &$run, |
|
| @@ 239-249 (lines=11) @@ | ||
| 236 | $hookPath = Filesystem::getView()->getRelativePath($this->fileView->getAbsolutePath($path)); |
|
| 237 | $run = true; |
|
| 238 | ||
| 239 | if (!$exists) { |
|
| 240 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_create, array( |
|
| 241 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 242 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 243 | )); |
|
| 244 | } else { |
|
| 245 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_update, array( |
|
| 246 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 247 | \OC\Files\Filesystem::signal_param_run => &$run, |
|
| 248 | )); |
|
| 249 | } |
|
| 250 | \OC_Hook::emit(\OC\Files\Filesystem::CLASSNAME, \OC\Files\Filesystem::signal_write, array( |
|
| 251 | \OC\Files\Filesystem::signal_param_path => $hookPath, |
|
| 252 | \OC\Files\Filesystem::signal_param_run => &$run, |
|