Skip to content

Commit

Permalink
fix(someone1#154): Fix prefix used when fetching subsequent pages wit…
Browse files Browse the repository at this point in the history
…h ListObjectsV2.

Signed-off-by: Johnathan Falk <[email protected]>
  • Loading branch information
jdfalk committed Nov 13, 2022
1 parent 6e7d53c commit ba726bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/aws_s3_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (a *AWSS3Backend) List(ctx context.Context, prefix string) ([]string, error
resp, err = a.client.ListObjectsV2WithContext(ctx, &s3.ListObjectsV2Input{
Bucket: aws.String(a.bucketName),
MaxKeys: aws.Int64(1000),
Prefix: aws.String(prefix),
Prefix: aws.String(a.prefix + prefix),
ContinuationToken: resp.NextContinuationToken,
})
if err != nil {
Expand Down

0 comments on commit ba726bd

Please sign in to comment.