file_repeat_scanner

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepeatFileScanner

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

func NewRepeatFileScanner

func NewRepeatFileScanner(dir string) *RepeatFileScanner

func (*RepeatFileScanner) Debug

func (s *RepeatFileScanner) Debug(debug bool) *RepeatFileScanner

func (*RepeatFileScanner) Delete

func (s *RepeatFileScanner) Delete(doDelete bool) *RepeatFileScanner

func (*RepeatFileScanner) DeleteOld added in v0.0.44

func (s *RepeatFileScanner) DeleteOld(deleteOld bool) *RepeatFileScanner

func (*RepeatFileScanner) DeleteRepeat

func (s *RepeatFileScanner) DeleteRepeat()

func (*RepeatFileScanner) Logfile

func (s *RepeatFileScanner) Logfile(logfile string) *RepeatFileScanner

func (*RepeatFileScanner) OutputJSON added in v0.0.44

func (s *RepeatFileScanner) OutputJSON(outputJSON bool) *RepeatFileScanner

func (*RepeatFileScanner) RepeatResult

func (s *RepeatFileScanner) RepeatResult() (result []RepeatResultItem)

func (*RepeatFileScanner) Scan

func (*RepeatFileScanner) WorkersCount

func (s *RepeatFileScanner) WorkersCount(workersCount int) *RepeatFileScanner

type RepeatResultItem

type RepeatResultItem struct {
	MD5         string       `json:"md5"`
	FileItem    ResultItem   `json:"raw_file"`
	RepeatFiles []ResultItem `json:"repeat_files"`
}

type ResultItem

type ResultItem struct {
	Info     fs.FileInfo `json:"-"`
	Filepath string      `json:"filepath"`
	MD5      string      `json:"md5"`
}

Jump to

Keyboard shortcuts

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