Skip to content

Commit ba726bd

Browse files
committed
fix(someone1#154): Fix prefix used when fetching subsequent pages with ListObjectsV2.
Signed-off-by: Johnathan Falk <johnathan.falk@gmail.com>
1 parent 6e7d53c commit ba726bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/aws_s3_backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ func (a *AWSS3Backend) List(ctx context.Context, prefix string) ([]string, error
371371
resp, err = a.client.ListObjectsV2WithContext(ctx, &s3.ListObjectsV2Input{
372372
Bucket: aws.String(a.bucketName),
373373
MaxKeys: aws.Int64(1000),
374-
Prefix: aws.String(prefix),
374+
Prefix: aws.String(a.prefix + prefix),
375375
ContinuationToken: resp.NextContinuationToken,
376376
})
377377
if err != nil {

0 commit comments

Comments
 (0)