Versions in this module Expand all Collapse all v0 v0.11.4 Jan 24, 2021 v0.11.3 Jan 24, 2021 Changes in this version + const DontFollowSymlinks + const FollowSymlinks + var GlobInvalidRecursiveErr = errors.New("pattern contains other characters between '**' and path separator") + var GlobLastRecursiveErr = errors.New("pattern has '**' as last path element") + var GlobMultipleRecursiveErr = errors.New("pattern contains multiple '**'") + func Glob(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, deps []string, err error) + func GlobPatternList(patterns []string, prefix string) (globedList []string, depDirs []string, err error) + func GlobWithDepFile(glob, fileListFile, depFile string, excludes []string) (files []string, err error) + func HasGlob(in []string) bool + func IsGlob(pattern string) bool + func Match(pattern, name string) (bool, error) + func MatchEscape(s string) string + func PrefixPaths(paths []string, prefix string) []string + func ReplaceExtension(path string, extension string) string + func ReplaceExtensions(paths []string, extension string) []string + func WriteFileIfChanged(filename string, data []byte, perm os.FileMode) error + type FileSystem interface + Exists func(name string) (bool, bool, error) + Glob func(pattern string, excludes []string, follow ShouldFollowSymlinks) (matches, dirs []string, err error) + IsDir func(name string) (bool, error) + IsSymlink func(name string) (bool, error) + ListDirsRecursive func(name string, follow ShouldFollowSymlinks) (dirs []string, err error) + Lstat func(name string) (os.FileInfo, error) + Open func(name string) (ReaderAtSeekerCloser, error) + ReadDirNames func(name string) ([]string, error) + Readlink func(name string) (string, error) + Stat func(name string) (os.FileInfo, error) + var OsFs FileSystem = &osFs{} + func MockFs(files map[string][]byte) FileSystem + func NewOsFs(path string) FileSystem + type ReaderAtSeekerCloser interface + type ShouldFollowSymlinks bool