From 5c79557403e364bee9b2f21f4501d48945053a0f Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Sun, 12 Jun 2022 20:22:16 +0200 Subject: [PATCH] Upgrade another list objects for AwsS3V3 --- CHANGELOG.md | 4 ++++ src/AwsS3V3/AwsS3V3Adapter.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28b9b4dfe..ee8972a13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 3.0.22 - 2022-06-12 + +- [AwsS3V3] Use ListObjectsV2 instead of ListObjects + ## 3.0.21 - 2022-06-12 - [AwsS3V3] Use ListObjectsV2 instead of ListObjects diff --git a/src/AwsS3V3/AwsS3V3Adapter.php b/src/AwsS3V3/AwsS3V3Adapter.php index 1aace2ee8..3ac55f8d2 100644 --- a/src/AwsS3V3/AwsS3V3Adapter.php +++ b/src/AwsS3V3/AwsS3V3Adapter.php @@ -149,7 +149,7 @@ public function directoryExists(string $path): bool try { $prefix = $this->prefixer->prefixDirectoryPath($path); $options = ['Bucket' => $this->bucket, 'Prefix' => $prefix, 'MaxKeys' => 1, 'Delimiter' => '/']; - $command = $this->client->getCommand('ListObjects', $options); + $command = $this->client->getCommand('ListObjectsV2', $options); $result = $this->client->execute($command); return $result->hasKey('Contents') || $result->hasKey('CommonPrefixes');