perf(lanzou): optimize the use of list cache (#2956)
* fix:local sort not cache * perf(lanzou): Optimize the use of list cache
This commit is contained in:
@ -38,13 +38,6 @@ func list(ctx context.Context, path string, refresh ...bool) ([]model.Obj, error
|
||||
om.InitHideReg(meta.Hide)
|
||||
}
|
||||
objs := om.Merge(virtualFiles, _objs...)
|
||||
// sort objs
|
||||
if storage != nil {
|
||||
if storage.Config().LocalSort {
|
||||
model.SortFiles(objs, storage.GetStorage().OrderBy, storage.GetStorage().OrderDirection)
|
||||
}
|
||||
model.ExtractFolder(objs, storage.GetStorage().ExtractFolder)
|
||||
}
|
||||
return objs, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user