ls: Fix ls output - fixes #1466

This commit is contained in:
Harshavardhana
2015-11-21 16:57:44 -08:00
parent 4cd9421080
commit cc0cde16c6
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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
-1
View File
@@ -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 {