apps/files_external/lib/amazons3.php 1 location
|
@@ 519-529 (lines=11) @@
|
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
$dh = $this->opendir($path1); |
| 519 |
|
if (is_resource($dh)) { |
| 520 |
|
while (($file = readdir($dh)) !== false) { |
| 521 |
|
if (\OC\Files\Filesystem::isIgnoredDir($file)) { |
| 522 |
|
continue; |
| 523 |
|
} |
| 524 |
|
|
| 525 |
|
$source = $path1 . '/' . $file; |
| 526 |
|
$target = $path2 . '/' . $file; |
| 527 |
|
$this->copy($source, $target); |
| 528 |
|
} |
| 529 |
|
} |
| 530 |
|
} |
| 531 |
|
|
| 532 |
|
return true; |
lib/private/files/storage/common.php 1 location
|
@@ 549-555 (lines=7) @@
|
| 546 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 547 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 548 |
|
$result = $this->mkdir($targetInternalPath); |
| 549 |
|
if (is_resource($dh)) { |
| 550 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 551 |
|
if (!Filesystem::isIgnoredDir($file)) { |
| 552 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
| 553 |
|
} |
| 554 |
|
} |
| 555 |
|
} |
| 556 |
|
} else { |
| 557 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |
| 558 |
|
// TODO: call fopen in a way that we execute again all storage wrappers |
lib/private/files/storage/wrapper/encryption.php 1 location
|
@@ 658-664 (lines=7) @@
|
| 655 |
|
if ($sourceStorage->is_dir($sourceInternalPath)) { |
| 656 |
|
$dh = $sourceStorage->opendir($sourceInternalPath); |
| 657 |
|
$result = $this->mkdir($targetInternalPath); |
| 658 |
|
if (is_resource($dh)) { |
| 659 |
|
while ($result and ($file = readdir($dh)) !== false) { |
| 660 |
|
if (!Filesystem::isIgnoredDir($file)) { |
| 661 |
|
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file); |
| 662 |
|
} |
| 663 |
|
} |
| 664 |
|
} |
| 665 |
|
} else { |
| 666 |
|
try { |
| 667 |
|
$source = $sourceStorage->fopen($sourceInternalPath, 'r'); |