feat: updated workspace API request to return file syncer url if available

This commit is contained in:
Andrey Melnikov
2021-01-29 09:53:40 -08:00
parent 4bc9cc1204
commit dac793601d
7 changed files with 123 additions and 6 deletions

View File

@@ -1683,7 +1683,9 @@ func (c *Client) ListFiles(namespace, key string) (files []*File, err error) {
files = make([]*File, 0)
if len(key) > 0 {
if key == "/" {
key = ""
} else if len(key) > 0 {
if string(key[len(key)-1]) != "/" {
key += "/"
}