Skip to content

Commit

Permalink
fix list
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Nov 12, 2024
1 parent fe88e52 commit 0644cfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/object/object_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,10 @@ func ListV2(store ObjectStorage, prefix, start, token, delimiter string, limit i
if errors.Is(err, notSupported) {
objs, err = store.List(prefix, start, delimiter, limit, followLink)
if len(objs) != 0 {
hasMore = true
nextToken = objs[len(objs)-1].Key()
if nextToken != "" {
hasMore = true
}
}
}
return objs, hasMore, nextToken, err
Expand Down

0 comments on commit 0644cfe

Please sign in to comment.