organizer

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaExtractor

type MetaExtractor interface {
	Extract(_ string, data io.Reader) (metadata.Metadata, error)
}

type Mode

type Mode interface {
	PlaceIt(sourcePath, targetPath string, mode os.FileMode) error
}

type Organizer

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

func NewOrganizer

func NewOrganizer(mode Mode, source, target string) *Organizer

func (*Organizer) BuildTargetPath

func (o *Organizer) BuildTargetPath(sourcePath string, meta metadata.Metadata) (string, error)

func (*Organizer) FullSync

func (o *Organizer) FullSync(ctx context.Context) error

func (*Organizer) Watch

func (o *Organizer) Watch(ctx context.Context, wg *sync.WaitGroup) error

func (*Organizer) WithDirMode

func (o *Organizer) WithDirMode(mode os.FileMode) *Organizer

func (*Organizer) WithErrLogger

func (o *Organizer) WithErrLogger(f func(error)) *Organizer

func (*Organizer) WithFileMode

func (o *Organizer) WithFileMode(mode os.FileMode) *Organizer

func (*Organizer) WithOverwrite

func (o *Organizer) WithOverwrite() *Organizer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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