mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-27 04:26:34 +08:00
chore: optimize standardize path
This commit is contained in:
@@ -17,7 +17,7 @@ var metaCache = cache.NewMemCache(cache.WithShards[*model.Meta](2))
|
||||
var metaG singleflight.Group[*model.Meta]
|
||||
|
||||
func GetNearestMeta(path string) (*model.Meta, error) {
|
||||
path = utils.StandardizationPath(path)
|
||||
path = utils.StandardizePath(path)
|
||||
meta, err := GetMetaByPath(path)
|
||||
if err == nil {
|
||||
return meta, nil
|
||||
|
||||
Reference in New Issue
Block a user