Documentation
¶
Overview ¶
Package walk provides deterministic, filtered directory traversal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWalkTruncated = errors.New("walk truncated")
ErrWalkTruncated reports that a configured visit or result cap stopped traversal.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
Path string
IsDir bool
IsSymlink bool
Size int64
ModTime time.Time
Mode fs.FileMode
}
Entry is one callback-visible descendant of the walk root.
type Filter ¶
type Filter struct {
Root *workspace.Root
WarningSink warning.Warner
IncludeGlobs []string
ExcludeGlobs []string
SkipHidden bool
SkipVCS bool
RespectGitignore bool
FollowSymlinks bool
MaxDepth int
MaxVisited int
MaxResults int
}
Filter controls directory traversal. A zero visit or result cap selects the package default. A negative depth is unlimited; depth zero visits only the root.
Click to show internal directories.
Click to hide internal directories.