Documentation ¶
Index ¶
- func DeepCopy(src string, target string) error
- func ExcludeFiles(testFiles, excludedList []string) []string
- func FindFiles(rootDir string, sources []string, matchBy MatchPattern) ([]string, error)
- func Globs(patterns []string) []string
- func List(dir string, pattern string) ([]string, error)
- func MatchFiles(files []string, match []string) []string
- func Walk(paths []string, pattern string) ([]string, error)
- type MatchPattern
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepCopy ¶ added in v0.12.1
DeepCopy performs a deep copy of src to target, creating all folders leading up to target if necessary.
func ExcludeFiles ¶ added in v0.92.0
ExcludeFiles returns file list which excluding given excluded file list
func FindFiles ¶ added in v0.86.0
func FindFiles(rootDir string, sources []string, matchBy MatchPattern) ([]string, error)
FindFiles returns a list of files as identified by the sources. Source pattern interpretation (e.g. regex or glob) is controlled by matchBy.
func Globs ¶
Globs returns the names of all files matching the glob patterns. Effectively syntactic sugar for filepath.Glob() to support multiple patterns.
func List ¶
List returns a list of files matching the regexp pattern. Unlike filepath.Glob, this method will inspect all subdirectories of dir.
func MatchFiles ¶ added in v0.95.0
MatchFiles returns matched file by specified pattern
Types ¶
type MatchPattern ¶ added in v0.86.0
type MatchPattern string
const ( FindByRegex MatchPattern = "regex" FindByShellPattern MatchPattern = "shellpattern" )
Click to show internal directories.
Click to hide internal directories.