Skip to content

Commit

Permalink
Fix panic in the s3 backend walk logic
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas França de Oliveira <lucasfdo@palantir.com>
  • Loading branch information
Lucas França de Oliveira committed May 25, 2023
1 parent 983358f commit 035a8ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/storage/driver/s3-aws/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ func (d *driver) doWalk(parentCtx context.Context, objectCount *int64, path, pre
// the most recent skip directory to avoid walking over undesirable files
prevSkipDir string
)
prevDir = prefix + path
prevDir = strings.Replace(path, d.s3Path(""), prefix, 1)

listObjectsInput := &s3.ListObjectsV2Input{
Bucket: aws.String(d.Bucket),
Expand Down

0 comments on commit 035a8ec

Please sign in to comment.