Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotDirectory = errors.New("target is not a directory")
Functions ¶
Types ¶
type Converter ¶
func NewJpeg2JpgConverter ¶
func NewJpeg2JpgConverter() Converter
func NewMD5Converter ¶
func NewMD5Converter() Converter
func NewSHA1Converter ¶
func NewSHA1Converter() Converter
func NewToLowerConverter ¶
func NewToLowerConverter() Converter
func NewToUpperConverter ¶
func NewToUpperConverter() Converter
type CopyTarget ¶
type CopyTarget struct {
Path string
}
CopyTarget creates a copy of original file with a new name.
type MD5Producer ¶
type MD5Producer struct { }
type MoveTarget ¶
type MoveTarget struct {
Path string
}
MoveTarget renames original files into new ones.
type SHA1Producer ¶
type SHA1Producer struct { }
type Target ¶
type Target interface { // Acquire receives a file with a new name into target. Acquire(info Info, newName string) error }
Target represents destination directory, where files with new names must be placed.
func CreateCopyTarget ¶
CreateCopyTarget instantiates new CopyTarget object, creating destination directory if it does not exist.
func CreateMoveTarget ¶
CreateMoveTarget instantiates new MoveTarget object, creating destination directory if it does not exist.
func NewVoidTarget ¶
func NewVoidTarget() Target
type VoidTarget ¶
type VoidTarget struct { }
VoidTarget does not perform any actions on files. Suitable for DryRun mode
Click to show internal directories.
Click to hide internal directories.