mirror of
https://github.com/datarhei/core.git
synced 2025-10-28 02:01:55 +08:00
Add missing implementation for GET /api/v3/cluster/fs/{storage}
This commit is contained in:
@@ -738,7 +738,16 @@ func (n *node) FileList(storage, pattern string) ([]clientapi.FileInfo, error) {
|
||||
return nil, ErrNoPeer
|
||||
}
|
||||
|
||||
return n.peer.FilesystemList(storage, pattern, "", "")
|
||||
files, err := n.peer.FilesystemList(storage, pattern, "", "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
for i := range files {
|
||||
files[i].CoreID = n.id
|
||||
}
|
||||
|
||||
return files, nil
|
||||
}
|
||||
|
||||
func cloneURL(src *url.URL) *url.URL {
|
||||
|
||||
Reference in New Issue
Block a user