(p string)
| 28 | } |
| 29 | |
| 30 | func SplitPath(p string) (rootName, rest string) { |
| 31 | p = tspath.NormalizePath(p) |
| 32 | l := RootLength(p) |
| 33 | rootName, rest = p[:l], p[l:] |
| 34 | rest = tspath.RemoveTrailingDirectorySeparator(rest) |
| 35 | return rootName, rest |
| 36 | } |
| 37 | |
| 38 | func (vfs *Common) RootAndPath(path string) (fsys fs.FS, rootName string, rest string) { |
| 39 | rootName, rest = SplitPath(path) |
no test coverage detected