Home | History | Annotate | Download | only in pathtools

Lines Matching defs:glob

31 // Glob returns the list of files that match the given pattern but do not match
34 // glob and exclude patterns are equivalent to filepath.Glob, with an extension
35 // that recursive glob (** matching zero or more complete path entries) is
36 // supported. Glob also returns a list of directories that were searched.
41 func Glob(pattern string, excludes []string) (matches, deps []string, err error) {
49 matches, deps, err = glob(fs, pattern, false)
77 // glob is a recursive helper function to handle globbing each level of the pattern individually,
78 // allowing searched directories to be tracked. Also handles the recursive glob pattern, **.
79 func glob(fs FileSystem, pattern string, hasRecursive bool) (matches, dirs []string, err error) {
82 // Uses filepath.Glob instead of manually statting to get consistent results.
84 matches, err = fs.glob(pattern)
95 matchDirs, err = fs.glob(pattern)
114 dirMatches, dirs, err := glob(fs, dir, hasRecursive)
121 return nil, nil, fmt.Errorf("unexpected error after glob: %s", err)
131 newMatches, err := fs.glob(filepath.Join(m, file))
190 // Filters the strings in matches based on the glob patterns in excludes. Hierarchical (a/*) and
191 // recursive (**) glob patterns are supported.
320 matches, deps, err = Glob(filepath.Join(prefix, pattern), nil)
333 // IsGlob returns true if the pattern contains any glob characters (*, ?, or [).
338 // HasGlob returns true if any string in the list contains any glob characters (*, ?, or [).
349 // GlobWithDepFile finds all files that match glob. It compares the list of files
353 // The format of glob is either path/*.ext for a single directory glob, or path/**/*.ext
354 // for a recursive glob.
361 func GlobWithDepFile(glob, fileListFile, depFile string, excludes []string) (files []string, err error) {
362 files, deps, err := Glob(glob, excludes)