]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix s3 directory copy 35184/head
authorRobin Appelman <robin@icewind.nl>
Tue, 15 Nov 2022 16:17:59 +0000 (17:17 +0100)
committerRobin Appelman <robin@icewind.nl>
Tue, 15 Nov 2022 16:17:59 +0000 (17:17 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/lib/Lib/Storage/AmazonS3.php

index 9e91b89d29e43969c91d7a206a524865363ea5b3..ffa25dba99957cbb4e9625bd9fab0d88786ed217 100644 (file)
@@ -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);
                        }
                }