|
@@ 933-944 (lines=12) @@
|
| 930 |
|
|
| 931 |
|
try { |
| 932 |
|
$exists = $this->file_exists($path2); |
| 933 |
|
if ($this->shouldEmitHooks()) { |
| 934 |
|
\OC_Hook::emit( |
| 935 |
|
Filesystem::CLASSNAME, |
| 936 |
|
Filesystem::signal_copy, |
| 937 |
|
[ |
| 938 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 939 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2), |
| 940 |
|
Filesystem::signal_param_run => &$run |
| 941 |
|
] |
| 942 |
|
); |
| 943 |
|
$this->emit_file_hooks_pre($exists, $path2, $run); |
| 944 |
|
} |
| 945 |
|
if ($run) { |
| 946 |
|
$mount1 = $this->getMount($path1); |
| 947 |
|
$mount2 = $this->getMount($path2); |
|
@@ 971-981 (lines=11) @@
|
| 968 |
|
$this->changeLock($path2, ILockingProvider::LOCK_SHARED); |
| 969 |
|
$lockTypePath2 = ILockingProvider::LOCK_SHARED; |
| 970 |
|
|
| 971 |
|
if ($result !== false && $this->shouldEmitHooks()) { |
| 972 |
|
\OC_Hook::emit( |
| 973 |
|
Filesystem::CLASSNAME, |
| 974 |
|
Filesystem::signal_post_copy, |
| 975 |
|
[ |
| 976 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 977 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2) |
| 978 |
|
] |
| 979 |
|
); |
| 980 |
|
$this->emit_file_hooks_post($exists, $path2); |
| 981 |
|
} |
| 982 |
|
} |
| 983 |
|
} catch (\Exception $e) { |
| 984 |
|
$this->unlockFile($path2, $lockTypePath2); |