Documentation
¶
Overview ¶
Package scanner implements a file system scanner and hasher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type CurrentFiler ¶ added in v0.6.5
type File ¶
type Suppressor ¶
type Walker ¶
type Walker struct {
// Dir is the base directory for the walk
Dir string
// BlockSize controls the size of the block used when hashing.
BlockSize int
// If IgnoreFile is not empty, it is the name used for the file that holds ignore patterns.
IgnoreFile string
// If TempNamer is not nil, it is used to ignore tempory files when walking.
TempNamer TempNamer
// If CurrentFiler is not nil, it is queried for the current file before rescanning.
CurrentFiler CurrentFiler
// If Suppressor is not nil, it is queried for supression of modified files.
// Suppressed files will be returned with empty metadata and the Suppressed flag set.
// Requires CurrentFiler to be set.
Suppressor Suppressor
// contains filtered or unexported fields
}
func (*Walker) CleanTempFiles ¶
func (w *Walker) CleanTempFiles()
CleanTempFiles removes all files that match the temporary filename pattern.
Click to show internal directories.
Click to hide internal directories.