Documentation ¶
Overview ¶
Package internal contains all the internal implementations of File Tools.
Index ¶
- func Check(err error)
- func Cleanup(params *CleanupParams) error
- func Initialize()
- func Similar(p *SimilarParams)
- func StringList(flagValue *string) []string
- func Unique(p *UniqueParams) error
- type CleanupParams
- type DuplicateFileReport
- type FileItem
- type FileTable
- type FilesWithSameHash
- type SimilarParams
- type UniqueParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Similar ¶
func Similar(p *SimilarParams)
Similar finds similarly named files in a directory structure.
func StringList ¶
StringList removes all empty and duplicate entries from a comma separated list of strings.
func Unique ¶
func Unique(p *UniqueParams) error
Unique finds all the duplicate files in a directory structure based on the UniqueParams
Types ¶
type CleanupParams ¶
CleanupParams is the parameters for cleaning up a directory.
type DuplicateFileReport ¶
type DuplicateFileReport struct { Title string Duplicates map[string]*FilesWithSameHash }
DuplicateFileReport is a report of all the duplicate files.
type FilesWithSameHash ¶
FilesWithSameHash holds a list of files with the same hash code.
type SimilarParams ¶
SimilarParams are the parameters for finding similarly named files.
type UniqueParams ¶
type UniqueParams struct { Paths []string MinSize int64 DeletePaths []string DryRun bool ReportFile string Verbose bool Overwrite bool HashFunction string StatusFrequency time.Duration CoarseHashing bool EnableFilePprof bool }
UniqueParams is the parameters for finding duplicate files in a directory structure.