lib/private/files/storage/common.php 1 location
|
@@ 573-579 (lines=7) @@
|
| 570 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 571 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 572 |
|
$result = $this->mkdir($targetInternalPath); |
| 573 |
|
if (is_resource($dh)) { |
| 574 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 575 |
|
if (!Filesystem::isIgnoredDir($file)) { |
| 576 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
| 577 |
|
} |
| 578 |
|
} |
| 579 |
|
} |
| 580 |
|
} else { |
| 581 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
| 582 |
|
// TODO: call fopen in a way that we execute again all storage wrappers |
lib/private/files/storage/wrapper/encryption.php 1 location
|
@@ 732-738 (lines=7) @@
|
| 729 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 730 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 731 |
|
$result = $this->mkdir($targetInternalPath); |
| 732 |
|
if (is_resource($dh)) { |
| 733 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 734 |
|
if (!Filesystem::isIgnoredDir($file)) { |
| 735 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
| 736 |
|
} |
| 737 |
|
} |
| 738 |
|
} |
| 739 |
|
} else { |
| 740 |
|
try { |
| 741 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
apps/files_external/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; |