From ed8fedc6851c61bc5d703c1b32db05bc0dfb0057 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 15 Nov 2022 17:17:59 +0100 Subject: [PATCH] fix s3 directory copy Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 9e91b89d29e..ffa25dba999 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -608,9 +608,9 @@ class AmazonS3 extends \OC\Files\Storage\Common { } foreach ($this->getDirectoryContent($source) as $item) { - $source = $source . '/' . $item['name']; - $target = $target . '/' . $item['name']; - $this->copy($source, $target, $item['mimetype'] !== FileInfo::MIMETYPE_FOLDER); + $childSource = $source . '/' . $item['name']; + $childTarget = $target . '/' . $item['name']; + $this->copy($childSource, $childTarget, $item['mimetype'] !== FileInfo::MIMETYPE_FOLDER); } } -- 2.39.5