chore: path standardize

This commit is contained in:
Noah Hsu
2022-06-27 20:56:17 +08:00
parent 74973bc5b5
commit db6b5f8950
2 changed files with 8 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import (
// StandardizePath convert path like '/' '/root' '/a/b'
func StandardizePath(path string) string {
path = strings.TrimSuffix(path, "/")
// windows abs path
// abs path
if filepath.IsAbs(path) {
return path
}