diff options
author | Robin Appelman <robin@icewind.nl> | 2022-11-15 17:17:59 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-11-15 17:17:59 +0100 |
commit | ed8fedc6851c61bc5d703c1b32db05bc0dfb0057 (patch) | |
tree | 1eb3f0a6d078fc5e7ecf0e47e5d52ba1e0d0996d /apps/files_external/lib/Lib | |
parent | 102617f0b3d7fb211c9bdbc7ac68865513ba7e19 (diff) | |
download | nextcloud-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.php | 6 |
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); } } |