diff --git a/cmd/admin-heal.go b/cmd/admin-heal.go index 31559860..1a8bba55 100644 --- a/cmd/admin-heal.go +++ b/cmd/admin-heal.go @@ -199,6 +199,7 @@ func mainAdminHeal(ctx *cli.Context) error { fatalIf(err.Trace(clnt.GetURL().String()), "Unable to create client for URL ", aliasedURL) return nil } + for content := range clnt.List(globalContext, ListOptions{IsRecursive: false, ShowDir: DirNone}) { if content.Err != nil { fatalIf(content.Err.Trace(clnt.GetURL().String()), "Unable to heal bucket `"+bucket+"`.") diff --git a/cmd/find.go b/cmd/find.go index 66feb566..5db62073 100644 --- a/cmd/find.go +++ b/cmd/find.go @@ -249,7 +249,7 @@ func doFind(ctxCtx context.Context, ctx *findContext) error { var prevKeyName string // iterate over all content which is within the given directory - for content := range ctx.clnt.List(globalContext, ListOptions{IsRecursive: true, ShowDir: DirNone}) { + for content := range ctx.clnt.List(globalContext, ListOptions{IsRecursive: true, ShowDir: DirFirst}) { if content.Err != nil { switch content.Err.ToGoError().(type) { // handle this specifically for filesystem related errors. diff --git a/cmd/ls.go b/cmd/ls.go index 62a0a5c9..ffe65564 100644 --- a/cmd/ls.go +++ b/cmd/ls.go @@ -195,7 +195,7 @@ func doList(ctx context.Context, clnt Client, isRecursive, isIncomplete bool, ti TimeRef: timeRef, WithOlderVersions: withOlderVersions || !timeRef.IsZero(), WithDeleteMarkers: true, - ShowDir: DirNone, + ShowDir: DirFirst, }) { if content.Err != nil { switch content.Err.ToGoError().(type) { diff --git a/cmd/tree-main.go b/cmd/tree-main.go index f7959acc..e4c1779a 100644 --- a/cmd/tree-main.go +++ b/cmd/tree-main.go @@ -226,7 +226,7 @@ func doTree(ctx context.Context, url string, timeRef time.Time, level int, leaf return nil } - for content := range clnt.List(ctx, ListOptions{IsRecursive: false, TimeRef: timeRef, ShowDir: DirNone}) { + for content := range clnt.List(ctx, ListOptions{IsRecursive: false, TimeRef: timeRef, ShowDir: DirFirst}) { if content.Err != nil { errorIf(content.Err.Trace(clnt.GetURL().String()), "Unable to tree.") continue