ls: Fix ls output - fixes #1466
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user