aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
}