Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Path string File fs.FileInfo Category FileCategory }
func ListFiles ¶
func ListFiles(conf config.Configuration, sourcePath string, extensions []string, category FileCategory) ([]File, uint)
func (File) ExtractFile ¶
func (file File) ExtractFile(conf config.Configuration, dest string) error
func (File) GenerateDestinationPath ¶
func (file File) GenerateDestinationPath(conf config.Configuration) string
Returns a string with the destination path of the given file.
List of available verbs:
- %y: Year
- %m: Month
- %d: Day
- %n: Camera name
- %t: Media type (Pictures, RAW, Movies)
func (File) PrepareFileDestinationFolder ¶
func (file File) PrepareFileDestinationFolder(conf config.Configuration) (string, error)
Click to show internal directories.
Click to hide internal directories.