| @@ 587-593 (lines=7) @@ | ||
| 584 | } |
|
| 585 | ||
| 586 | $result = $this->copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, true); |
|
| 587 | if ($result) { |
|
| 588 | if ($sourceStorage->is_dir($sourceInternalPath)) { |
|
| 589 | $result &= $sourceStorage->rmdir($sourceInternalPath); |
|
| 590 | } else { |
|
| 591 | $result &= $sourceStorage->unlink($sourceInternalPath); |
|
| 592 | } |
|
| 593 | } |
|
| 594 | return $result; |
|
| 595 | } |
|
| 596 | ||
| @@ 576-582 (lines=7) @@ | ||
| 573 | // - remove $this->copyBetweenStorage |
|
| 574 | ||
| 575 | $result = $this->copyBetweenStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime, true); |
|
| 576 | if ($result) { |
|
| 577 | if ($sourceStorage->is_dir($sourceInternalPath)) { |
|
| 578 | $result &= $sourceStorage->rmdir($sourceInternalPath); |
|
| 579 | } else { |
|
| 580 | $result &= $sourceStorage->unlink($sourceInternalPath); |
|
| 581 | } |
|
| 582 | } |
|
| 583 | return $result; |
|
| 584 | } |
|
| 585 | ||