...
1
2
3
4
5
6
7 package filepath
8
9 import "strings"
10
11 func isLocal(path string) bool {
12 return unixIsLocal(path)
13 }
14
15
16 func IsAbs(path string) bool {
17 return strings.HasPrefix(path, "/")
18 }
19
20
21
22 func volumeNameLen(path string) int {
23 return 0
24 }
25
26
27
28
29
30 func HasPrefix(p, prefix string) bool {
31 return strings.HasPrefix(p, prefix)
32 }
33
34 func splitList(path string) []string {
35 if path == "" {
36 return []string{}
37 }
38 return strings.Split(path, string(ListSeparator))
39 }
40
41 func abs(path string) (string, error) {
42 return unixAbs(path)
43 }
44
45 func join(elem []string) string {
46
47 for i, e := range elem {
48 if e != "" {
49 return Clean(strings.Join(elem[i:], string(Separator)))
50 }
51 }
52 return ""
53 }
54
55 func sameWord(a, b string) bool {
56 return a == b
57 }
58
View as plain text