dprm

package
v0.0.0-...-a592db4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashDupStr

func GetHashDupStr(data TraverseData) string

GetHashDupStr searches for duplicates with the content hash comparison method, prepares the output containing all of the duplicates and if the remove flag is set to true it also removes the duplicates.

func GetPerceptualDupStr

func GetPerceptualDupStr(data TraverseData) string

GetPerceptualDupStr searches for duplicates with the perceptual image comparison method, prepares the output containing all of the duplicates and if the remove flag is set to true it also removes the duplicates.

func Run

func Run(format, method, directory string, recursive, remove bool) string

Run runs the commandline utility. It accepts a pointer to arguments so that other applications can incorporate this tools functionality. If the pointer is nil then it reads the arguments from command line.

Types

type TraverseData

type TraverseData struct {
	Path      string
	Remove    bool
	Recursive bool
	Format    string
	Ignored   [][]string
}

Jump to

Keyboard shortcuts

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