compare

package
v0.0.0-...-8cd0e52 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DuplicatedFiles store all know duplicated files
	DuplicatedFiles = make(map[uint64]Duplicated)
)

Functions

func AddFile

func AddFile(file File)

AddFile append files to the dupFileSize map to be compared later

func ValidateDuplicatedFiles

func ValidateDuplicatedFiles(verbose bool)

ValidateDuplicatedFiles do the full hash of the duplicatedFiles to avoid false positives

Types

type Duplicated

type Duplicated struct {
	ListDuplicated []File
}

Duplicated maintain an array of duplicated files

type File

type File struct {
	Path string
	Info os.FileInfo
}

File contains the path to the file and her info

Jump to

Keyboard shortcuts

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