Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreDotAndTempFiles ¶
IgnoreDotFiles returns true if the name starts with a ".". This is the default method for checking if an entry should be ignored.
func IsOfficeDocument ¶
Types ¶
type IgnoreFunc ¶
IgnoreFunc is a function definition that tells walkFiles when it should ignore files and directory paths.
type PWalker ¶
type PWalker struct { // NumParallel is the number of go routines to start for processing. NumParallel int // ProcessFn is the function to use to process entries. ProcessFn ProcessFunc // IgnoreFn is the method to test if an entry should be ignored. If // IgnoreFn is nil then all entries will be process. IgnoreFn IgnoreFunc // ProcessDirs tells the walker whether directory entries should also // be passed to ProcessFn. It defaults to false, so by default directories // are not passed to ProcessFn. ProcessDirs bool }
PWalker implements a parallel walker. It holds the options and processing methods to use during the walk.
func (*PWalker) PWalk ¶
PWalk will walk a tree and process files in it in parallel. fn is the process function. "n" go routines will be started with fn for processing. The ignorePathFn determines whether a file or directory path should be ignored. ignorePathFn can be nil. If it is nil then no files or paths are ignored.
type ProcessFunc ¶
ProcessFunc is the signature for a function that processes each file entry.