2023-10-16 09:18:40 +00:00
|
|
|
package vfs
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path"
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
func trimRelPath(p, t string) string {
|
|
|
|
return strings.Trim(strings.TrimPrefix(p, t), "/")
|
|
|
|
}
|
|
|
|
|
2023-10-18 09:52:48 +00:00
|
|
|
func clean(p string) string {
|
2023-10-16 09:18:40 +00:00
|
|
|
return path.Clean(Separator + strings.ReplaceAll(p, "\\", "/"))
|
|
|
|
}
|