chore: optimize standardize path

This commit is contained in:
Noah Hsu
2022-06-23 17:04:37 +08:00
parent a65dcb48b4
commit ffa0bc294a
5 changed files with 24 additions and 12 deletions

View File

@ -41,7 +41,7 @@ func List(ctx context.Context, path string) ([]model.Obj, error) {
}
func Get(ctx context.Context, path string) (model.Obj, error) {
path = utils.StandardizationPath(path)
path = utils.StandardizePath(path)
// maybe a virtual file
if path != "/" {
virtualFiles := operations.GetAccountVirtualFilesByPath(stdpath.Dir(path))