Lines Matching refs:dir
56 dir := filepath.Dir(f)
57 for dir != "." && dir != "/" {
58 fs.dirs[dir] = true
59 dir = filepath.Dir(dir)
61 fs.dirs[dir] = true
221 dir, err := os.Open(fs.toAbs(name))
225 defer dir.Close()
227 contents, err := dir.Readdirnames(-1)
248 dir, file := saneSplit(name)
249 if dir != "." && dir != "/" {
250 dir = m.followSymlinks(dir)
252 name = filepath.Join(dir, file)
266 name = filepath.Join(dir, to)
305 dir := filepath.Dir(name)
306 if dir != "." && dir != "/" {
307 isDir, err := m.IsDir(dir)
333 dir, file := saneSplit(name)
334 dir = m.followSymlinks(dir)
335 name = filepath.Join(dir, file)
366 dir, file := saneSplit(pattern)
368 dir = unescapeGlob(dir)
369 toDir := m.followSymlinks(dir)
384 matches = append(matches, filepath.Join(dir, fFile))
405 dir, file := saneSplit(name)
406 dir = m.followSymlinks(dir)
407 name = filepath.Join(dir, file)
467 dir, file := saneSplit(f)
468 if dir == name && len(file) > 0 && file[0] != '.' {
480 dir, file := saneSplit(name)
481 dir = m.followSymlinks(dir)
484 name = filepath.Join(dir, file)