dupers

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

dupers todo

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoPath    = errors.New("path does not exist")
	ErrPathExist = errors.New("path exists in the database bucket")
)

Functions

func Print

func Print(term string, quiet bool, m *database.Matches)

Print the results of the database comparisons.

Types

type Config

type Config struct {
	Timer   time.Time
	Buckets []string // buckets to lookup
	Source  string   // directory or file to compare
	Quiet   bool     // reduce the feedback sent to stdout
	// contains filtered or unexported fields
}

Config options for duper.

func (*Config) Print

func (c *Config) Print()

Print the results of a dupe request.

func (*Config) PurgeSrc added in v0.0.3

func (c *Config) PurgeSrc()

PurgeSrc removes all files and directories from the source directory that are not unique MS-DOS or Windows programs.

func (*Config) Remove added in v0.0.3

func (c *Config) Remove()

Remove all duplicate files from the source directory.

func (*Config) Seek

func (c *Config) Seek()

Seek sources from the database and print out the matches.

func (*Config) Status

func (c *Config) Status() string

Status summarizes the file total and time taken.

func (*Config) WalkDir

func (c *Config) WalkDir(root string) error

WalkDir walks the root directory for zip archives and to extract any found comments.

func (*Config) WalkDirs

func (c *Config) WalkDirs()

WalkDirs walks the directories provided by the arguments for zip archives to extract any found comments.

func (*Config) WalkSource

func (c *Config) WalkSource()

WalkSource walks the source directory or a file to collect its hashed content for future comparison.

Directories

Path Synopsis
dupers todo
dupers todo

Jump to

Keyboard shortcuts

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