1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-16 22:10:42 +02:00

some comments

This commit is contained in:
Chris Lu 2019-03-28 00:38:30 -07:00
parent 53b81fcfcd
commit 07775998a9

View file

@ -76,7 +76,7 @@ func treeTraverseDirectory(ctx context.Context, writer io.Writer, client filer_p
}
for i, entry := range resp.Entries {
// 0.1% wrong prefix here, but fixing it would need to paginate to the next batch first
isLast := paginatedCount < paginateSize && i == paginatedCount-1
fmt.Fprintf(writer, "%s%s\n", prefix.getPrefix(level, isLast), entry.Name)