14 lines
235 B
Go
14 lines
235 B
Go
package vfs
|
|
|
|
import (
|
|
"path"
|
|
"strings"
|
|
)
|
|
|
|
func trimRelPath(p, t string) string {
|
|
return strings.Trim(strings.TrimPrefix(p, t), "/")
|
|
}
|
|
|
|
func clean(p string) string {
|
|
return path.Clean(Separator + strings.ReplaceAll(p, "\\", "/"))
|
|
}
|