mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-27 10:02:10 +08:00
feat: updated workspace API request to return file syncer url if available
This commit is contained in:
@@ -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 += "/"
|
||||
}
|
||||
|
Reference in New Issue
Block a user