deduper

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const INDEX_NAME = ".duplicate-index.json"

Variables

This section is empty.

Functions

This section is empty.

Types

type Deduper

type Deduper interface {
	Indexer
	Finder
	IsDirExist(target string) error
	MoveDuplicates(files [][]string, target string) error
}

func NewDeduper

func NewDeduper(fs afero.Fs, indexPath string, md5 bool) Deduper

type Finder

type Finder interface {
	// return list of duplicate (list of list)
	Find() [][]string
}

type Index

type Index struct {
	// contains filtered or unexported fields
}

type IndexedFile

type IndexedFile struct {
	Path        string
	Md5Checksum []byte
}

type Indexer

type Indexer interface {
	Create(dir string) error
	Load() error
}

Jump to

Keyboard shortcuts

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