dupfinder

package module
Version: v0.0.0-...-12b5c8c Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 5 Imported by: 0

README

dupfinder

Find duplicate files in specified directory trees.

GoDoc Build Status

Download

Binaries for several platforms are available in GitHub releases:

https://github.com/janosgyerik/dupfinder/releases

Usage

Find duplicate files in some directory tree:

dupfinder path/to/dir

Some basic filtering options are available. See dupfinder -h for options.

For maximum control, you can use the find command to filter files to include, and pass the list of files to stdin of dupfinder -0, for example:

find . -type f -print0 | dupfinder -0

To find duplicate files in multiple directory trees, only considering filenames with extension .avi, descending to at most 2 sub-directory levels:

find path/to/dir path/to/other/dir -name '*.avi' -maxdepth 2 | dupfinder -0 

Generate test coverage report

Run the ./coverage.sh helper script.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

type EventListener interface {
	NewDuplicate([]string)
	BytesRead(count int)
}

type Tracker

type Tracker interface {
	Add(path string)
	Dups() [][]string
	SetEventListener(EventListener)
}

func NewTracker

func NewTracker() Tracker

Source Files

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL