From 72ec63fbabefa2460267bff7e70b048fc99d3a83 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Tue, 14 Apr 2015 16:20:05 -0700 Subject: [PATCH] cmd-ls now treats urlType=file as list objects instead of list buckets always. Closes #365. --- cmd-ls.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))