Documentation ¶
Overview ¶
© Ben Garrett https://github.com/bengarrett/dupers
Index ¶
- Variables
- func Contains(find string, s ...string) bool
- func Executable(root string) (bool, error)
- func Marker(file database.Filepath, term string, exact bool) string
- func Print(quiet, exact bool, term string, m *database.Matches) string
- type Bucket
- type Checksum
- type Checksums
- type Scanner
- func (p *Scanner) BucketS() string
- func (p *Scanner) Compares() int
- func (p *Scanner) GetSource() string
- func (p *Scanner) SetAllBuckets(db *bolt.DB) error
- func (p *Scanner) SetBuckets(names ...string) error
- func (p *Scanner) SetCompares(db *bolt.DB, name Bucket) (int, error)
- func (p *Scanner) SetSource(name string) error
- func (p *Scanner) SetTimer()
- func (p *Scanner) Timer() time.Duration
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSource = errors.New("cannot use an empty source")
Functions ¶
func Executable ¶
Executable returns true if the root directory contains an MS-DOS or Windows program file.
Types ¶
type Scanner ¶
type Scanner struct { Sources []string // Sources to compare, either directories or files. Buckets []Bucket // Buckets to lookup. Compare Checksums // Compare hashes fetched from the database or file system. Files int // Files counter of the totals scanned and processed. // contains filtered or unexported fields }
func (*Scanner) SetAllBuckets ¶
SetAllBuckets sets all the database buckets for use with the dupe or search commands.
func (*Scanner) SetBuckets ¶
SetBuckets adds the bucket name to a list of buckets.
func (*Scanner) SetCompares ¶
SetCompares fetches item names an checksums from the named bucket and stores them in the Compare Scanner.
Click to show internal directories.
Click to hide internal directories.