refactor: change driver interface
This commit is contained in:
@ -136,8 +136,8 @@ func getAccountsByPath(path string) []driver.Driver {
|
||||
// GetAccountVirtualFilesByPath Obtain the virtual file generated by the account according to the path
|
||||
// for example, there are: /a/b,/a/c,/a/d/e,/a/b.balance1,/av
|
||||
// GetAccountVirtualFilesByPath(/a) => b,c,d
|
||||
func GetAccountVirtualFilesByPath(prefix string) []model.FileInfo {
|
||||
files := make([]model.FileInfo, 0)
|
||||
func GetAccountVirtualFilesByPath(prefix string) []model.Object {
|
||||
files := make([]model.Object, 0)
|
||||
accounts := accountsMap.Values()
|
||||
sort.Slice(accounts, func(i, j int) bool {
|
||||
if accounts[i].GetAccount().Index == accounts[j].GetAccount().Index {
|
||||
|
Reference in New Issue
Block a user