Skip to content

Commit

Permalink
fix start parm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Nov 11, 2024
1 parent a908f5d commit fe88e52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/object/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func (p *withPrefix) List(prefix, marker, delimiter string, limit int64, followL
}

func (p *withPrefix) ListV2(prefix, start, token, delimiter string, limit int64, followLink bool) ([]Object, bool, string, error) {
objs, hasMore, nextMarker, err := p.os.ListV2(p.prefix+prefix, p.prefix+start, token, delimiter, limit, followLink)
if start != "" {
start = p.prefix + start
}
objs, hasMore, nextMarker, err := p.os.ListV2(p.prefix+prefix, start, token, delimiter, limit, followLink)
for i, o := range objs {
objs[i] = p.updateKey(o)
}
Expand Down

0 comments on commit fe88e52

Please sign in to comment.