|
@@ 862-873 (lines=12) @@
|
| 859 |
|
try { |
| 860 |
|
|
| 861 |
|
$exists = $this->file_exists($path2); |
| 862 |
|
if ($this->shouldEmitHooks()) { |
| 863 |
|
\OC_Hook::emit( |
| 864 |
|
Filesystem::CLASSNAME, |
| 865 |
|
Filesystem::signal_copy, |
| 866 |
|
array( |
| 867 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 868 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2), |
| 869 |
|
Filesystem::signal_param_run => &$run |
| 870 |
|
) |
| 871 |
|
); |
| 872 |
|
$this->emit_file_hooks_pre($exists, $path2, $run); |
| 873 |
|
} |
| 874 |
|
if ($run) { |
| 875 |
|
$mount1 = $this->getMount($path1); |
| 876 |
|
$mount2 = $this->getMount($path2); |
|
@@ 900-910 (lines=11) @@
|
| 897 |
|
$this->changeLock($path2, ILockingProvider::LOCK_SHARED); |
| 898 |
|
$lockTypePath2 = ILockingProvider::LOCK_SHARED; |
| 899 |
|
|
| 900 |
|
if ($this->shouldEmitHooks() && $result !== false) { |
| 901 |
|
\OC_Hook::emit( |
| 902 |
|
Filesystem::CLASSNAME, |
| 903 |
|
Filesystem::signal_post_copy, |
| 904 |
|
array( |
| 905 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 906 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2) |
| 907 |
|
) |
| 908 |
|
); |
| 909 |
|
$this->emit_file_hooks_post($exists, $path2); |
| 910 |
|
} |
| 911 |
|
|
| 912 |
|
} |
| 913 |
|
} catch (\Exception $e) { |