index

package
v0.0.0-...-dbd9761 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 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 Index

type Index struct {
	base.Command
	// Paths is the array of directory paths to scan and index.
	Paths []string `short:"p" long:"path" description:"The directory path(s) to index." required:"true"`
	// Database is the path to the database to open/create on disk.
	Database string `short:"d" long:"database" description:"Path to the database." required:"true" default:"./dedup.db"`
	// Bucket is a label that is given to all entries indexed during this run.
	Bucket string `short:"b" long:"bucket" description:"The bucket to use for indexing the given paths." optional:"true" default:"default"`

	Up   bool `long:"up" description:"Migrate the database up." optional:"true"`
	Down bool `long:"down" description:"Migrate the database up." optional:"true"`
}

Index is the command that scans and indexes all cxontents in one or mode directories on disk, in order to check if there are duplicate files on disk, and where they are.

func (*Index) Execute

func (cmd *Index) Execute(args []string) error

Execute is the real implementation of the Version command.

Jump to

Keyboard shortcuts

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