cmd-ls now treats urlType=file as list objects instead of list buckets always. Closes #365.

This commit is contained in:
Frederick F. Kautz IV
2015-04-14 16:20:22 -07:00
parent dbcf66a5e8
commit 72ec63fbab
+2 -1
View File
@@ -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))