Documentation ¶
Index ¶
- Constants
- type FileInfo
- type WalkCallback
- type WalkFunc
- type Walker
- func (w Walker) Accepts(pth string) bool
- func (w *Walker) DefaultIgnores() *Walker
- func (w *Walker) IgnoreFunc(f ...func(pth string) bool) *Walker
- func (w *Walker) IgnoreGlob(g ...glob.Glob) *Walker
- func (w *Walker) IgnoreGlobS(pattern ...string) *Walker
- func (w *Walker) IgnoreName(names ...string) *Walker
- func (w *Walker) IgnorePath(pth ...string) *Walker
- func (w *Walker) IgnoreRe(re ...*regexp.Regexp) *Walker
- func (w *Walker) IgnoreReS(pattern ...string) *Walker
- func (w *Walker) Recursives() *Walker
- func (w Walker) Walk(dirpath string, cb WalkCallback) (err error)
Constants ¶
View Source
const XbWalkName = ".xbwalk"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileInfo ¶
func (FileInfo) SetNamePrefix ¶
type WalkCallback ¶
type WalkFunc ¶
type WalkFunc = func(visited *map[string]bool, recursive bool, cb WalkCallback) (err error)
type Walker ¶
type Walker struct { Recursive bool VisitedPaths *map[string]bool IgnoreNames map[string]bool IgnorePaths map[string]bool IgnoreRes []*regexp.Regexp IgnoreGlobs []glob.Glob IgnoreFuncs []func(pth string) bool // contains filtered or unexported fields }
func (*Walker) DefaultIgnores ¶
func (*Walker) IgnoreGlobS ¶
func (*Walker) IgnoreName ¶
func (*Walker) IgnorePath ¶
func (*Walker) Recursives ¶
Click to show internal directories.
Click to hide internal directories.