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
261 dir, err := os.Open(fs.toAbs(name))
265 defer dir.Close()
267 contents, err := dir.Readdirnames(-1)
288 dir, file := quickSplit(name)
289 if dir != "." && dir != "/" {
290 dir = m.followSymlinks(dir)
292 name = filepath.Join(dir, file)
306 name = filepath.Join(dir, to)
345 dir := filepath.Dir(name)
346 if dir != "." && dir != "/" {
347 isDir, err := m.IsDir(dir)
373 dir, file := quickSplit(name)
374 dir = m.followSymlinks(dir)
375 name = filepath.Join(dir, file)
406 dir, file := quickSplit(pattern)
408 dir = unescapeGlob(dir)
409 toDir := m.followSymlinks(dir)
424 matches = append(matches, filepath.Join(dir, fFile))
445 dir, file := quickSplit(name)
446 dir = m.followSymlinks(dir)
447 name = filepath.Join(dir, file)
507 dir, file := quickSplit(f)
508 if dir == name && len(file) > 0 && file[0] != '.' {
520 dir, file := quickSplit(name)
521 dir = m.followSymlinks(dir)
524 name = filepath.Join(dir, file)