service

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDuplicates

func FindDuplicates(directories []string, excludedFiles map[string]struct{}, fileSizeThreshold int64, parallelism int) (
	duplicates *entity.DigestToFiles, duplicateTotalCount int64, savingsSize int64,
	allFiles entity.FilePathToMeta, err error,
)

FindDuplicates finds duplicate files in a given set of directories and matching criteria

func GetDigest

func GetDigest(path string) (entity.FileDigest, error)

GetDigest generates entity.FileDigest of the file provided, in an extremely fast manner without compromising the quality of file's uniqueness.

When this function was called on approximately 172k files (mix of photos, videos, audio files, PDFs etc.), the uniqueness identified by this matched uniqueness identified by SHA-256 for *all* files

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL