Lines Matching refs:Dir
132 dir, file := saneSplit(pattern)
141 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow)
181 // Faster version of dir, file := filepath.Dir(path), filepath.File(path) with no allocations
182 // Similar to filepath.Split, but returns "." if dir is empty and trims trailing slash if dir is
184 func saneSplit(path string) (dir, file string) {
188 dir, file = filepath.Split(path)
189 switch dir {
191 dir = "."
195 dir = dir[:len(dir)-1]
197 return dir, file
410 dir := filepath.Dir(filename)
411 err := os.MkdirAll(dir, 0777)