Skip to content

Commit

Permalink
Use ListObjectsV2 for S3 listing
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jun 12, 2022
1 parent 42a2f47 commit 54470d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AwsS3V3/AwsS3V3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public function listContents(string $path, bool $deep): iterable

private function retrievePaginatedListing(array $options): Generator
{
$resultPaginator = $this->client->getPaginator('ListObjects', $options + $this->options);
$resultPaginator = $this->client->getPaginator('ListObjectsV2', $options + $this->options);

foreach ($resultPaginator as $result) {
yield from ($result->get('CommonPrefixes') ?: []);
Expand Down

0 comments on commit 54470d9

Please sign in to comment.