Documentation ¶
Index ¶
- func DeepCopy(src string, target string) error
- func FindFiles(rootDir string, sources []string, matchBy MatchPattern) ([]string, error)
- func Globs(patterns []string) []string
- func List(dir string, pattern string) ([]string, error)
- 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 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.
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.