fileNameFromGeneration

Computes the full file name from base, extension and generation. If the generation is -1, the file name is null. If it's 0, the file name is .. If it's > 0, the file name is _..

NOTE: . is added to the name only if ext is not an empty string.

Parameters

base

main part of the file name

ext

extension of the filename

gen

generation