Skeudenn / main/services/library-organizer / templatedStem
Function: templatedStem() ​
templatedStem(
fileName,entry,extension,articles?,volumePrefix?,prefixNumericOnly?):string
Defined in: src/main/services/library-organizer.ts:162
The name, without extension, that the template fileName (AppSettings.libraryFileName) gives entry's file: each field filled from the entry (a missing series, year or author giving the translated "Unknown", a missing volume being left out with the text glued before it; the author as in the author level), then made safe like a folder name and cut so that extension still fits in MAX_NAME_BYTES. With articles, a leading article of the series and of the title goes to the end (Vent du nord (Le)), and volumePrefix (AppSettings.libraryVolumePrefix) is put in front of the volume, only when it is a whole number with prefixNumericOnly.
Parameters ​
fileName ​
string
entry ​
extension ​
string
articles? ​
readonly string[] = []
volumePrefix? ​
string = ''
prefixNumericOnly? ​
boolean = false
Returns ​
string