Howto use functions in FileMover
Documentation / FileMover
Date: Oct 20, 2025 - 09:08 PM
|
It is now possible to apply functions to the new filename. The abstract syntax is functionname(parameterlist?) where parameterlist is parameter(, parameter)* and parameter itself function | "characters allowed in filenames".
The function names are configured in the file functions.properties. This file can be found in the jar. The following functions are implemented:
- print - takes an arbitrary number of parameters and concatenates them
- lower - takes one argument (will take the last one if more than one are passed and returns the string as lowercase
- upper - same like lower but makes the string uppercase
- number - takes an optional argument which must be a number and indicates the number which is printed first and returns an number which is incremented by one every call
- mp3tag - takes one argument taht indicates which mp3tag should be printed where the case sensitive argument can be:
- artist
- album
- composer
- genre
- encodedBy
- lyricist
- title
- subtitle
- originalTitle
- originalFileName
- originalLyricist
- originalArtist
- originalYear
- band
- conductor
- remixer
- partOfSet
- publisher
- track
- year
It is possible to implement your own functions. You just have to implement the Interface de.esomaniac.filemover.function.Function. This class name has to be mapped in the functions.properties which can be found in the jar.
|
This article comes from Esomaniacs Homepage
http://www.esomaniac.de/
The URL for this story is:
http://www.esomaniac.de/modules.php?op=modload&name=News&file=article&sid=6
|
|