aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-11-16 15:41:19 +0100
committerGitHub <noreply@github.com>2022-11-16 15:41:19 +0100
commite3822e1160cf26a2d654287cd80253509b36d081 (patch)
tree69355e2728582fbd82f4c4a24ca9f8dd5f6bea62
parent7e36002a93269ee1e2575e883b4e3c687fbf722b (diff)
parented8fedc6851c61bc5d703c1b32db05bc0dfb0057 (diff)
downloadnextcloud-server-e3822e1160cf26a2d654287cd80253509b36d081.tar.gz
nextcloud-server-e3822e1160cf26a2d654287cd80253509b36d081.zip
Merge pull request #35184 from nextcloud/s3-copy-dir-shadow
fix s3 directory copy
-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);
}
}