Skip to content

Commit c78c5ae

Browse files
committed
Use ListJectsV2
1 parent 7da63a0 commit c78c5ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_s3.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ func (g *S3Getter) ClientMode(u *url.URL) (ClientMode, error) {
5151
}
5252

5353
// List the object(s) at the given prefix
54-
req := &s3.ListObjectsInput{
54+
req := &s3.ListObjectsV2Input{
5555
Bucket: aws.String(bucket),
5656
Prefix: aws.String(path),
5757
}
58-
resp, err := client.ListObjects(ctx, req)
58+
resp, err := client.ListObjectsV2(ctx, req)
5959
if err != nil {
6060
return 0, err
6161
}

0 commit comments

Comments
 (0)