diff --git a/cmd-ls.go b/cmd-ls.go index 1490271f..ac272918 100644 --- a/cmd-ls.go +++ b/cmd-ls.go @@ -76,7 +76,8 @@ func doListCmd(ctx *cli.Context) { log.Debug.Println(iodine.New(err, nil)) console.Fatalln(err) } - if urlp.bucketName == "" { // List all buckets + log.Println(urlp.urlType) + if urlp.bucketName == "" && urlp.urlType != urlFile { // List all buckets buckets, err := client.ListBuckets() if err != nil { log.Debug.Println(iodine.New(err, nil))