Skip to content

Commit

Permalink
Upgrade another list objects for AwsS3V3
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jun 12, 2022
1 parent 8f1fcf9 commit 5c79557
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/AwsS3V3/AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5c79557

Please sign in to comment.