Home | History | Annotate | Download | only in os

Lines Matching full:path

89 	fs.path = name
90 if !isAbs(fs.path) {
91 fs.path, e = syscall.FullPath(fs.path)
100 // directory name and drive letter from path name.
123 func isAbs(path string) (b bool) {
124 v := volumeName(path)
128 path = path[len(v):]
129 if path == "" {
132 return IsPathSeparator(path[0])
135 func volumeName(path string) (v string) {
136 if len(path) < 2 {
140 c := path[0]
141 if path[1] == ':' &&
144 return path[:2]
147 if l := len(path); l >= 5 && IsPathSeparator(path[0]) && IsPathSeparator(path[1]) &&
148 !IsPathSeparator(path[2]) && path[2] != '.' {
152 if IsPathSeparator(path[n]) {
155 if !IsPathSeparator(path[n]) {
156 if path[n] == '.' {
160 if IsPathSeparator(path[n]) {
164 return path[:n]