| @@ 733-739 (lines=7) @@ | ||
| 730 | if ($sourceStorage->is_dir($sourceInternalPath)) { |
|
| 731 | $dh = $sourceStorage->opendir($sourceInternalPath); |
|
| 732 | $result = $this->mkdir($targetInternalPath); |
|
| 733 | if (is_resource($dh)) { |
|
| 734 | while ($result and ($file = readdir($dh)) !== false) { |
|
| 735 | if (!Filesystem::isIgnoredDir($file)) { |
|
| 736 | $result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename); |
|
| 737 | } |
|
| 738 | } |
|
| 739 | } |
|
| 740 | } else { |
|
| 741 | try { |
|
| 742 | $source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
|
| @@ 557-563 (lines=7) @@ | ||
| 554 | if ($sourceStorage->is_dir($sourceInternalPath)) { |
|
| 555 | $dh = $sourceStorage->opendir($sourceInternalPath); |
|
| 556 | $result = $this->mkdir($targetInternalPath); |
|
| 557 | if (is_resource($dh)) { |
|
| 558 | while ($result and ($file = readdir($dh)) !== false) { |
|
| 559 | if (!Filesystem::isIgnoredDir($file)) { |
|
| 560 | $result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
|
| 561 | } |
|
| 562 | } |
|
| 563 | } |
|
| 564 | } else { |
|
| 565 | $source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
|
| 566 | // TODO: call fopen in a way that we execute again all storage wrappers |
|