Documentation ¶
Overview ¶
DFF finds duplicate files in specified directories.
Index ¶
Constants ¶
View Source
const ( SortBySize = iota + 1 SortByTotalSize SortByCount )
View Source
const ( JsonFormat = iota + 1 TextFormat )
Variables ¶
This section is empty.
Functions ¶
func ByteCountDecimal ¶
https://programming.guide/go/formatting-byte-size-to-human-readable-format.html
func InitLogger ¶
func InitLogger(verbose bool)
Types ¶
type ByTotalSize ¶
type ByTotalSize struct{ UniqFiles }
Sort by total size
func (ByTotalSize) Less ¶
func (s ByTotalSize) Less(i, j int) bool
type DuplicateFileFinder ¶
type DuplicateFileFinder struct { Option *Option // contains filtered or unexported fields }
DuplicateFileFinder is core of dupliate file finder
func NewDuplicateFileFinder ¶
func NewDuplicateFileFinder(option *Option) *DuplicateFileFinder
func (*DuplicateFileFinder) Display ¶
func (d *DuplicateFileFinder) Display(list []*UniqFile)
type DuplicateFileMap ¶
type FileDetail ¶
type FileDetail struct {
// contains filtered or unexported fields
}
type FileMap ¶
type FileMap map[string]*FileDetail
type FileMapBySize ¶
type FileMapBySize map[int64][]*FileDetail
type FileMapDetail ¶
type FileMapDetail struct {
// contains filtered or unexported fields
}
func NewFileMapDetail ¶
func NewFileMapDetail(dir string) *FileMapDetail
type UniqFile ¶
func NewDuplicateFiles ¶
Click to show internal directories.
Click to hide internal directories.