Lines Matching refs:matches
36 // more complete path entries) is supported. Any directories in the matches
42 func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, deps []string, err error) {
47 follow ShouldFollowSymlinks) (matches, deps []string, err error) {
52 matches, deps, err = glob(fs, pattern, false, follow)
59 matches, err = filterExcludes(matches, excludes)
67 // If the pattern didn't have wildcards, and didn't find matches, the
74 deps = append(deps, matches...)
77 for i, match := range matches {
94 matches[i] = match + "/"
99 return matches, deps, nil
105 follow ShouldFollowSymlinks) (matches, dirs []string, err error) {
111 matches, err = fs.glob(pattern)
113 return matches, dirs, err
116 if len(matches) == 0 {
124 return matches, dirs, err
129 return matches, dirs, err
136 return matches, dirs, GlobMultipleRecursiveErr
163 matches = append(matches, recurseDirs...)
173 matches = append(matches, newMatches...)
178 return matches, dirs, nil
204 // Filters the strings in matches based on the glob patterns in excludes. Hierarchical (a/*) and
206 func filterExcludes(matches []string, excludes []string) ([]string, error) {
208 return matches, nil
213 for _, m := range matches {
230 func filterDotFiles(matches []string) []string {
231 ret := make([]string, 0, len(matches))
233 for _, match := range matches {
244 // Match returns true if name matches pattern using the same rules as filepath.Match, but supporting
285 // matchPrefix returns true if the beginning of name matches pattern using the same rules as
337 matches []string
346 matches, deps, err = Glob(filepath.Join(prefix, pattern), nil, FollowSymlinks)
350 globedList = append(globedList, matches...)
376 // will have a trailing '/'. It compares the list of matches against the