mmv

package
v0.0.0-...-5b3d30d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotDirectory = xerrors.New("is not a directory")
	ErrCannotCreate = xerrors.New("there are more new paths than old. mmv can't create files or directories")
	ErrCannotDelete = xerrors.New("there are more new paths than old. mmv can't delete files or directories")
)

Functions

func OptionDryRun

func OptionDryRun() func(*MultiMover)

func OptionExclude

func OptionExclude(excludes *regexp.Regexp) func(*MultiMover)

func OptionInclude

func OptionInclude(includes *regexp.Regexp) func(*MultiMover)

Types

type DefaultEditor

type DefaultEditor struct{}

func (*DefaultEditor) Edit

func (e *DefaultEditor) Edit(filename string) error

type FileEditor

type FileEditor interface {
	Edit(filename string) error
}

type MockEditor

type MockEditor struct {
	// This message is written to the file when Edit is called.
	Message string
}

func (*MockEditor) Edit

func (e *MockEditor) Edit(filename string) error

type MultiMover

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

func NewMultiMover

func NewMultiMover(options ...func(*MultiMover)) *MultiMover

func (*MultiMover) MultiMoveDir

func (mm *MultiMover) MultiMoveDir(path string) error

Jump to

Keyboard shortcuts

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