aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-11-15 17:17:59 +0100
committerRobin Appelman <robin@icewind.nl>2022-11-15 17:17:59 +0100
commited8fedc6851c61bc5d703c1b32db05bc0dfb0057 (patch)
tree1eb3f0a6d078fc5e7ecf0e47e5d52ba1e0d0996d /apps/files_external/lib/Lib
parent102617f0b3d7fb211c9bdbc7ac68865513ba7e19 (diff)
downloadnextcloud-server-ed8fedc6851c61bc5d703c1b32db05bc0dfb0057.tar.gz
nextcloud-server-ed8fedc6851c61bc5d703c1b32db05bc0dfb0057.zip
fix s3 directory copy
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php6
1 files 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);
}
}