Documentation
¶
Overview ¶
Package powerwalk concurrently walks file trees. Aside from SkipDir functionality not working and the fact that the WalkFunc gets run concurrently, this is a drop-in replacement for filepath.Walk.
Index ¶
Constants ¶
const DefaultConcurrentWalks int = 100
DefaultConcurrentWalks is the default number of files that will be walked at the same time when the Walk function is called. To use a value other than this one, use the WalkLimit function.
Variables ¶
This section is empty.
Functions ¶
func Walk ¶
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by walkFn. The output is non-deterministic. WalkLimit does not follow symbolic links.
For each file and directory encountered, Walk will trigger a new Go routine allowing you to handle each item concurrently. A maximum of DefaultConcurrentWalks walkFns will be called at any one time.
func WalkLimit ¶
WalkLimit walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files and directories are filtered by walkFn. The output is non-deterministic. WalkLimit does not follow symbolic links.
For each file and directory encountered, Walk will trigger a new Go routine allowing you to handle each item concurrently. A maximum of limit walkFns will be called at any one time.
Types ¶
This section is empty.