Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DedupHashMethod ¶
type DedupHashMethod int
const ( DedupHashInvalid DedupHashMethod = iota DedupHashCRC DedupHashFileSize DedupHashSHA256 )
type DedupOptions ¶
type DedupOptions struct {
// HashMethod is the hash function to use to find identical files
HashMethod DedupHashMethod
}
type DedupResult ¶
type DedupResult struct {
// Deduped represents the total number of bytes saved by deduplication.
// This value accounts also for all previously deduplicated data, not only the savings
// from the last run.
Deduped uint64
}
func DedupDirs ¶
func DedupDirs(dirs []string, options DedupOptions) (DedupResult, error)
Click to show internal directories.
Click to hide internal directories.