Skip to content

Commit

Permalink
storage/s3: enable ListObjectsV2 for GCS (peak#617)
Browse files Browse the repository at this point in the history
GCS now supports ListObjectsV2 XML API according to their changelog.

cloud.google.com/storage/docs/release-notes#July_12_2021

I choose to believe the doc because I haven't tested it :)

Fixes peak#513
  • Loading branch information
igungor committed Jul 28, 2023
1 parent 20d6a22 commit 065c3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (s *S3) List(ctx context.Context, url *url.URL, _ bool) <-chan *Object {
if url.VersionID != "" || url.AllVersions {
return s.listObjectVersions(ctx, url)
}
if IsGoogleEndpoint(s.endpointURL) || s.useListObjectsV1 {
if s.useListObjectsV1 {
return s.listObjects(ctx, url)
}

Expand Down

0 comments on commit 065c3cf

Please sign in to comment.