From cc0cde16c6336b95bcba2593bfb8e9123924dc10 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 21 Nov 2015 16:57:44 -0800 Subject: [PATCH] ls: Fix ls output - fixes #1466 --- ls-main.go | 2 +- ls.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ls-main.go b/ls-main.go index e13e383a..e4d9da37 100644 --- a/ls-main.go +++ b/ls-main.go @@ -121,7 +121,7 @@ func mainList(ctx *cli.Context) { args = []string{"."} } - targetURLs, err := args2URLs(args.Head()) + targetURLs, err := args2URLs(args) fatalIf(err.Trace(args...), "One or more unknown URL types passed.") for _, targetURL := range targetURLs { var clnt client.Client diff --git a/ls.go b/ls.go index c23bdb15..21aee6b6 100644 --- a/ls.go +++ b/ls.go @@ -110,7 +110,6 @@ func doList(clnt client.Client, isRecursive, isIncomplete bool) *probe.Error { if !strings.HasSuffix(prefixPath, separator) { prefixPath = prefixPath[:strings.LastIndex(prefixPath, separator)+1] } - for content := range clnt.List(isRecursive, isIncomplete) { // fmt.Println(content) if content.Err != nil {