transfer

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package transfer moves media files to their final destinations or error directory. Package relies on resolver package for destination paths and is final stage of processing pipeline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup(cfg *config.Config, logger *slog.Logger)

Cleanup removes all remaining entries from torrent directory after processing. Skips incomplete directory specified in config.Config.IncompletePath.

func Error

func Error(root *metadata.Entry, cfg *config.Config, logger *slog.Logger)

Error moves failed entry to manager's error directory for manual review. Uses [resolveConflict] to handle duplicate names. Panics if unable to create or move to error directory.

func TestTransfer

func TestTransfer(entry *metadata.Entry, tempDir string, logger *slog.Logger) error

os.MkdirTemp("", "media-library-manager-*")

func Transfer

func Transfer(entry *metadata.Entry, cfg *config.Config, logger *slog.Logger) error

Transfer recursively moves media entries to their final destinations. Uses [resolveConflict] to handle duplicate filenames. Returns error if move fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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