Documentation
¶
Overview ¶
© Ben Garrett https://github.com/bengarrett/dupers
Index ¶
- Variables
- func Abs(name string) (string, error)
- func Count(db *bolt.DB, name string) (int, error)
- func Rename(name string, assumeYes bool) string
- func Stat(name string, assumeYes, test bool) string
- func Stats(name string, assumeYes bool) bool
- func Total(db *bolt.DB, buckets []string) (int, error)
- type Cleaner
- type Parser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBucketAsFile = errors.New("bucket points to a file, not a directory") ErrBucketExists = errors.New("bucket already exists in the database") ErrBucketNotDir = errors.New("bucket path is not a directory") ErrBucketPath = errors.New("directory used by the bucket does not exist on your system") ErrBucketSkip = errors.New("bucket directory does not exist") ErrNilBucket = errors.New("bucket cannot be an empty directory") )
Functions ¶
Types ¶
type Cleaner ¶
type Cleaner struct {
Name string // Name of the bucket.
Debug bool // Debug spams technobabble to stdout.
Quiet bool // Quiet the feedback sent to stdout.
Total int // Total items handled.
Items int // Items is the sum of the bucket items.
Finds int // Finds is the sum of the cleaned items.
Errs int // Errs is the sum of the items that could not be cleaned.
}
Click to show internal directories.
Click to hide internal directories.