chore: path standardize
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user