apps/files_external/lib/Lib/Storage/AmazonS3.php 1 location
|
@@ 498-508 (lines=11) @@
|
| 495 |
|
} |
| 496 |
|
|
| 497 |
|
$dh = $this->opendir($path1); |
| 498 |
|
if (is_resource($dh)) { |
| 499 |
|
while (($file = readdir($dh)) !== false) { |
| 500 |
|
if (\OC\Files\Filesystem::isIgnoredDir($file)) { |
| 501 |
|
continue; |
| 502 |
|
} |
| 503 |
|
|
| 504 |
|
$source = $path1 . '/' . $file; |
| 505 |
|
$target = $path2 . '/' . $file; |
| 506 |
|
$this->copy($source, $target); |
| 507 |
|
} |
| 508 |
|
} |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
return true; |
lib/private/Files/Storage/Common.php 1 location
|
@@ 560-566 (lines=7) @@
|
| 557 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 558 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 559 |
|
$result = $this->mkdir($targetInternalPath); |
| 560 |
|
if (is_resource($dh)) { |
| 561 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 562 |
|
if (!Filesystem::isIgnoredDir($file) && !Filesystem::isForbiddenFileOrDir($file)) { |
| 563 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
| 564 |
|
} |
| 565 |
|
} |
| 566 |
|
} |
| 567 |
|
} else { |
| 568 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
| 569 |
|
// TODO: call fopen in a way that we execute again all storage wrappers |
lib/private/Files/Storage/Wrapper/Encryption.php 1 location
|
@@ 775-781 (lines=7) @@
|
| 772 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 773 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 774 |
|
$result = $this->mkdir($targetInternalPath); |
| 775 |
|
if (is_resource($dh)) { |
| 776 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 777 |
|
if (!Filesystem::isIgnoredDir($file)) { |
| 778 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file, false, $isRename); |
| 779 |
|
} |
| 780 |
|
} |
| 781 |
|
} |
| 782 |
|
} else { |
| 783 |
|
try { |
| 784 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |