fix: local relative path

This commit is contained in:
Noah Hsu
2022-06-27 20:37:05 +08:00
parent 7c0b86a9cd
commit 74973bc5b5
6 changed files with 25 additions and 5 deletions

View File

@ -87,7 +87,7 @@ func Get(ctx context.Context, account driver.Driver, path string) (model.Obj, er
}
// not root folder
dir, name := stdpath.Split(path)
files, err := List(ctx, account, dir)
files, err := List(ctx, account, utils.StandardizePath(dir))
if err != nil {
return nil, errors.WithMessage(err, "failed get parent list")
}