|
@@ 924-935 (lines=12) @@
|
| 921 |
|
|
| 922 |
|
try { |
| 923 |
|
$exists = $this->file_exists($path2); |
| 924 |
|
if ($this->shouldEmitHooks()) { |
| 925 |
|
\OC_Hook::emit( |
| 926 |
|
Filesystem::CLASSNAME, |
| 927 |
|
Filesystem::signal_copy, |
| 928 |
|
[ |
| 929 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 930 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2), |
| 931 |
|
Filesystem::signal_param_run => &$run |
| 932 |
|
] |
| 933 |
|
); |
| 934 |
|
$this->emit_file_hooks_pre($exists, $path2, $run); |
| 935 |
|
} |
| 936 |
|
if ($run) { |
| 937 |
|
$mount1 = $this->getMount($path1); |
| 938 |
|
$mount2 = $this->getMount($path2); |
|
@@ 962-972 (lines=11) @@
|
| 959 |
|
$this->changeLock($path2, ILockingProvider::LOCK_SHARED); |
| 960 |
|
$lockTypePath2 = ILockingProvider::LOCK_SHARED; |
| 961 |
|
|
| 962 |
|
if ($result !== false && $this->shouldEmitHooks()) { |
| 963 |
|
\OC_Hook::emit( |
| 964 |
|
Filesystem::CLASSNAME, |
| 965 |
|
Filesystem::signal_post_copy, |
| 966 |
|
[ |
| 967 |
|
Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
| 968 |
|
Filesystem::signal_param_newpath => $this->getHookPath($path2) |
| 969 |
|
] |
| 970 |
|
); |
| 971 |
|
$this->emit_file_hooks_post($exists, $path2); |
| 972 |
|
} |
| 973 |
|
} |
| 974 |
|
} catch (\Exception $e) { |
| 975 |
|
$this->unlockFile($path2, $lockTypePath2); |