Lines Matching refs:dirs
32 func Glob(pattern string) (matches, dirs []string, err error) {
41 func GlobWithExcludes(pattern string, excludes []string) (matches, dirs []string, err error) {
45 matches, dirs, err = glob(pattern, false)
57 return matches, dirs, nil
62 func glob(pattern string, hasRecursive bool) (matches, dirs []string, err error) {
69 return matches, dirs, err
80 return matches, dirs, err
83 dirs = append(dirs, matchDirs...)
85 return matches, dirs, err
92 return matches, dirs, GlobMultipleRecursiveErr
97 dirMatches, dirs, err := glob(dir, hasRecursive)
111 dirs = append(dirs, m)
121 return matches, dirs, nil
148 func walkAllDirs(dir string) (dirs []string, err error) {
155 dirs = append(dirs, path)
160 return dirs, err