Custom file naming: manual testing complete

This commit is contained in:
Robert McRackan 2021-11-02 21:53:58 -04:00
parent ab450c37c4
commit a3cf6ac40d
3 changed files with 21 additions and 7 deletions

View file

@ -101,7 +101,9 @@ namespace LibationFileManager
/// EditTemplateDialog: Get template generated filename for portion of path
/// </summary>
public string GetPortionFilename(LibraryBookDto libraryBookDto, string template)
=> getFileNamingTemplate(libraryBookDto, template, null, null)
=> string.IsNullOrWhiteSpace(template)
? ""
: getFileNamingTemplate(libraryBookDto, template, null, null)
.GetFilePath();
internal static FileNamingTemplate getFileNamingTemplate(LibraryBookDto libraryBookDto, string template, string dirFullPath, string extension)