Skip to content

Tankōbon / main/services/library-organizer / templatedStem

Function: templatedStem() ​

templatedStem(fileName, entry, extension, articles?): string

Defined in: main/services/library-organizer.ts:160

The name, without extension, that the template fileName (AppSettings.libraryFileName) gives entry's file: each field filled from the entry (a missing series, volume, year or author giving the translated "Unknown"; 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)).

Parameters ​

fileName ​

string

entry ​

OrganizedEntry

extension ​

string

articles? ​

readonly string[] = []

Returns ​

string