operations

package
v0.0.0-...-a2ed315 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(conf *config.Config, target *config.Target)

Filter analyzes the photos in the current local directory, puts these that are already present in the target in the "Trash" directory and reorganizes the new ones in daily folders.

func Fix

func Fix(conf *config.Config, target *config.Target)

Fix renames the photo in the specified directory according to their Exif timestamps. HEIC photos are converted to JPEG.

func Ignore

func Ignore(conf *config.Config, target *config.Target)

Ignore creates a photoignore file with the files in the current directory. It process all files, recursively.

func Info

func Info(conf *config.Config, target *config.Target)

Info tries to print the metadata of the photo or video file.

func LocalUpdate

func LocalUpdate(conf *config.Config, target *config.Target)

LocalUpdate updates the cache for a local target.

func RunCommandFunction

func RunCommandFunction(cmd commandFunction, help helpFunction, requiresTarget bool)

RunCommandFunction executes the given function by passing the configuration and the target specified in the command line as parameters.

func ShowHelpFilter

func ShowHelpFilter()

ShowHelpFilter prints the help for the stats operation.

func ShowHelpFix

func ShowHelpFix()

ShowHelpFix prints the help for the info operation.

func ShowHelpIgnore

func ShowHelpIgnore()

ShowHelpIgnore prints the help for the info operation.

func ShowHelpInfo

func ShowHelpInfo()

ShowHelpInfo prints the help for the info operation.

func ShowHelpStats

func ShowHelpStats()

ShowHelpStats prints the help for the stats operation.

func ShowHelpUpdate

func ShowHelpUpdate()

ShowHelpUpdate prints the help for the update operation.

func Stats

func Stats(conf *config.Config, target *config.Target)

Stats shows interesting information and statistics about the specified target. The information is inferred from the cache file, which will be created if it doesn't exist or it will be updated if it is too old.

func Update

func Update(conf *config.Config, target *config.Target)

Update the cache for the target specified on the command line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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