On the CLI, ensure listing ends with /.

This commit is contained in:
Jeff Mitchell 2016-02-03 21:08:46 -05:00
parent fff201014d
commit da2360c7f4
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ func (c *ListCommand) Run(args []string) int {
path = path[1:]
}
if !strings.HasSuffix(path, "/") {
path = path + "/"
}
client, err := c.Client()
if err != nil {
c.Ui.Error(fmt.Sprintf(