Lines Matching refs:matches
103 matches, deps, err := glob(fs, pattern, false, follow)
109 matches, err = filterExcludes(matches, excludes)
124 deps = append(deps, matches...)
127 for i, match := range matches {
139 matches[i] = match + "/"
146 Matches: matches,
154 follow ShouldFollowSymlinks) (matches, dirs []string, err error) {
160 matches, err = fs.glob(pattern)
162 return matches, dirs, err
165 if len(matches) == 0 {
173 return matches, dirs, err
178 return matches, dirs, err
185 return matches, dirs, GlobMultipleRecursiveErr
189 return matches, dirs, GlobInvalidRecursiveErr
214 matches = append(matches, recurseDirs...)
224 matches = append(matches, newMatches...)
229 return matches, dirs, nil
257 func filterExcludes(matches []string, excludes []string) ([]string, error) {
259 return matches, nil
264 for _, m := range matches {
281 func filterDotFiles(matches []string) []string {
282 ret := make([]string, 0, len(matches))
284 for _, match := range matches {