Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirStats ¶
DirStats contains metadata for disk usage of a parent directory.
type Result ¶
Result wraps DirStats with the Path that was used to stat the data.
It is used whenever a task may stat multiple directories and return the results out-of-order and/or asynchronously.
type Scanner ¶
type Scanner struct { C <-chan Result // contains filtered or unexported fields }
Scanner contains fields to access the results of an ongoing Scan.
If the underlying filepath Walk encounters a fatal error, the results channel will be closed and Err() will return a non-nil value. Always drain (*Scanner).C prior to checking Err().
If the underlying filepath Walk encounters a non-fatal error, the walked directory will be silently skipped (for now).
Click to show internal directories.
Click to hide internal directories.