File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ func (g *S3Getter) ClientMode(u *url.URL) (ClientMode, error) {
51
51
}
52
52
53
53
// List the object(s) at the given prefix
54
- req := & s3.ListObjectsInput {
54
+ req := & s3.ListObjectsV2Input {
55
55
Bucket : aws .String (bucket ),
56
56
Prefix : aws .String (path ),
57
57
}
58
- resp , err := client .ListObjects (ctx , req )
58
+ resp , err := client .ListObjectsV2 (ctx , req )
59
59
if err != nil {
60
60
return 0 , err
61
61
}
@@ -119,15 +119,15 @@ func (g *S3Getter) Get(dst string, u *url.URL) error {
119
119
lastMarker := ""
120
120
hasMore := true
121
121
for hasMore {
122
- req := & s3.ListObjectsInput {
122
+ req := & s3.ListObjectsV2Input {
123
123
Bucket : aws .String (bucket ),
124
124
Prefix : aws .String (path ),
125
125
}
126
126
if lastMarker != "" {
127
- req .Marker = aws .String (lastMarker )
127
+ req .Delimiter = aws .String (lastMarker )
128
128
}
129
129
130
- resp , err := client .ListObjects (ctx , req )
130
+ resp , err := client .ListObjectsV2 (ctx , req )
131
131
if err != nil {
132
132
return err
133
133
}
You can’t perform that action at this time.
0 commit comments