|
@@ 868-879 (lines=12) @@
|
| 865 |
|
try { |
| 866 |
|
|
| 867 |
|
$exists = $this->file_exists($path2); |
| 868 |
|
if ($this->shouldEmitHooks()) { |
| 869 |
|
\OC_Hook::emit( |
| 870 |
|
Filesystem::CLASSNAME, |
| 871 |
|
Filesystem::signal_copy, |
| 872 |
|
array( |
| 873 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 874 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2), |
| 875 |
|
Filesystem::signal_param_run => &$run |
| 876 |
|
) |
| 877 |
|
); |
| 878 |
|
$this->emit_file_hooks_pre($exists, $path2, $run); |
| 879 |
|
} |
| 880 |
|
if ($run) { |
| 881 |
|
$mount1 = $this->getMount($path1); |
| 882 |
|
$mount2 = $this->getMount($path2); |
|
@@ 906-916 (lines=11) @@
|
| 903 |
|
$this->changeLock($path2, ILockingProvider::LOCK_SHARED); |
| 904 |
|
$lockTypePath2 = ILockingProvider::LOCK_SHARED; |
| 905 |
|
|
| 906 |
|
if ($this->shouldEmitHooks() && $result !== false) { |
| 907 |
|
\OC_Hook::emit( |
| 908 |
|
Filesystem::CLASSNAME, |
| 909 |
|
Filesystem::signal_post_copy, |
| 910 |
|
array( |
| 911 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 912 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2) |
| 913 |
|
) |
| 914 |
|
); |
| 915 |
|
$this->emit_file_hooks_post($exists, $path2); |
| 916 |
|
} |
| 917 |
|
|
| 918 |
|
} |
| 919 |
|
} catch (\Exception $e) { |