• Home
  • Raw
  • Download

Lines Matching refs:err

42 …ttern 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)
55 if err != nil {
56 return nil, nil, err
59 matches, err = filterExcludes(matches, excludes)
60 if err != nil {
61 return nil, nil, err
78 isSymlink, err := fs.IsSymlink(match)
79 if err != nil {
80 return nil, nil, err
83 isDir, err := fs.IsDir(match)
84 if os.IsNotExist(err) {
89 if err != nil {
90 return nil, nil, fmt.Errorf("%s: %s", match, err.Error())
105 follow ShouldFollowSymlinks) (matches, dirs []string, err error) {
111 matches, err = fs.glob(pattern)
112 if err != nil {
113 return matches, dirs, err
122 matchDirs, err = fs.glob(pattern)
123 if err != nil {
124 return matches, dirs, err
129 return matches, dirs, err
141 dirMatches, dirs, err := glob(fs, dir, hasRecursive, follow)
142 if err != nil {
143 return nil, nil, err
147 isDir, err := fs.IsDir(m)
148 if os.IsNotExist(err) {
153 if err != nil {
154 return nil, nil, fmt.Errorf("unexpected error after glob: %s", err)
159 recurseDirs, err := fs.ListDirsRecursive(m, follow)
160 if err != nil {
161 return nil, nil, err
166 newMatches, err := fs.glob(filepath.Join(MatchEscape(m), file))
167 if err != nil {
168 return nil, nil, err
215 exclude, err := Match(e, m)
216 if err != nil {
217 return nil, err
278 match, err := filepath.Match(patternFile, nameFile)
279 if err != nil || !match {
280 return match, err
320 match, err := filepath.Match(patternElem, nameElem)
321 if err != nil || !match {
322 return match, err
335 func GlobPatternList(patterns []string, prefix string) (globedList []string, depDirs []string, err
346 matches, deps, err = Glob(filepath.Join(prefix, pattern), nil, FollowSymlinks)
347 if err != nil {
348 return nil, nil, err
389 func GlobWithDepFile(glob, fileListFile, depFile string, excludes []string) (files []string, err er…
390 files, deps, err := Glob(glob, excludes, FollowSymlinks)
391 if err != nil {
392 return nil, err
411 err := os.MkdirAll(dir, 0777)
412 if err != nil {
413 return err
416 info, err := os.Stat(filename)
417 if err != nil {
418 if os.IsNotExist(err) {
422 return err
428 oldData, err := ioutil.ReadFile(filename)
429 if err != nil {
430 return err
447 err = ioutil.WriteFile(filename, data, perm)
448 if err != nil {
449 return err