Skip to content

Commit 96abf31

Browse files
authored
Merge pull request #29160 from nextcloud/backport/24185/stable22
2 parents bdc0c2d + 3246eea commit 96abf31

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/files_external/lib/Lib/Storage/AmazonS3.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ private function batchDelete($path = null) {
318318
}
319319
// we reached the end when the list is no longer truncated
320320
} while ($objects['IsTruncated']);
321+
$this->deleteObject($path);
321322
} catch (S3Exception $e) {
322323
\OC::$server->getLogger()->logException($e, ['app' => 'files_external']);
323324
return false;

lib/private/Files/Storage/Common.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,7 @@ public function copyFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
612612
$dh = $sourceStorage->opendir($sourceInternalPath);
613613
$result = $this->mkdir($targetInternalPath);
614614
if (is_resource($dh)) {
615+
$result = true;
615616
while ($result and ($file = readdir($dh)) !== false) {
616617
if (!Filesystem::isIgnoredDir($file)) {
617618
$result &= $this->copyFromStorage($sourceStorage, $sourceInternalPath . '/' . $file, $targetInternalPath . '/' . $file);

0 commit comments

Comments
 (0)