This commit is contained in:
Chris Lu
2021-03-14 13:21:02 -07:00
parent 2d4c2db81d
commit 35d939a1d2
10 changed files with 13 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ func SeaweedList(client SeaweedFilerClient, parentDirectoryPath, prefix string,
func doSeaweedList(client SeaweedFilerClient, fullDirPath util.FullPath, prefix string, fn EachEntryFunciton, startFrom string, inclusive bool, limit uint32) (err error) {
// Redundancy limit to make it correctly judge whether it is the last file.
redLimit := limit
if limit != math.MaxInt32 && limit != 0{
if limit != math.MaxInt32 && limit != 0 {
redLimit = limit + 1
}
request := &ListEntriesRequest{