Sort directory objects correctly (#10886)

Decode dir objects when listing and sort them correctly.
This commit is contained in:
Klaus Post
2020-11-12 13:09:34 -08:00
committed by GitHub
parent 07859ef48b
commit a3017c724e
2 changed files with 22 additions and 3 deletions

View File

@@ -539,7 +539,7 @@ func (er *erasureObjects) streamMetadataParts(ctx context.Context, o listPathOpt
func (er *erasureObjects) listPath(ctx context.Context, o listPathOptions) (entries metaCacheEntriesSorted, err error) {
const debugPrint = false
if debugPrint {
console.Printf("listPath with options: %#v", o)
console.Printf("listPath with options: %#v\n", o)
}
// See if we have the listing stored.
if !o.Create {