| @@ 615-626 (lines=12) @@ | ||
| 612 | } |
|
| 613 | $run = true; |
|
| 614 | $exists = $this->file_exists($path2); |
|
| 615 | if ($this->shouldEmitHooks()) { |
|
| 616 | \OC_Hook::emit( |
|
| 617 | Filesystem::CLASSNAME, |
|
| 618 | Filesystem::signal_copy, |
|
| 619 | array( |
|
| 620 | Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
|
| 621 | Filesystem::signal_param_newpath => $this->getHookPath($path2), |
|
| 622 | Filesystem::signal_param_run => &$run |
|
| 623 | ) |
|
| 624 | ); |
|
| 625 | $this->emit_file_hooks_pre($exists, $path2, $run); |
|
| 626 | } |
|
| 627 | if ($run) { |
|
| 628 | $mp1 = $this->getMountPoint($path1 . $postFix1); |
|
| 629 | $mp2 = $this->getMountPoint($path2 . $postFix2); |
|
| @@ 676-686 (lines=11) @@ | ||
| 673 | } |
|
| 674 | } |
|
| 675 | $this->updater->update($path2); |
|
| 676 | if ($this->shouldEmitHooks() && $result !== false) { |
|
| 677 | \OC_Hook::emit( |
|
| 678 | Filesystem::CLASSNAME, |
|
| 679 | Filesystem::signal_post_copy, |
|
| 680 | array( |
|
| 681 | Filesystem::signal_param_oldpath => $this->getHookPath($path1), |
|
| 682 | Filesystem::signal_param_newpath => $this->getHookPath($path2) |
|
| 683 | ) |
|
| 684 | ); |
|
| 685 | $this->emit_file_hooks_post($exists, $path2); |
|
| 686 | } |
|
| 687 | return $result; |
|
| 688 | } else { |
|
| 689 | return false; |
|