1
2
3
4
5
6
7 package filepathlite
8
9 import (
10 "internal/bytealg"
11 "internal/stringslite"
12 )
13
14 const (
15 Separator = '/'
16 ListSeparator = ':'
17 )
18
19 func IsPathSeparator(c uint8) bool {
20 return Separator == c
21 }
22
23 func isLocal(path string) bool {
24 return unixIsLocal(path)
25 }
26
27 func localize(path string) (string, error) {
28 if bytealg.IndexByteString(path, 0) >= 0 {
29 return "", errInvalidPath
30 }
31 return path, nil
32 }
33
34
35 func IsAbs(path string) bool {
36 return stringslite.HasPrefix(path, "/")
37 }
38
39
40
41 func volumeNameLen(path string) int {
42 return 0
43 }
44
View as plain text