create_new_file_name#

create_new_file_name(file_name: str, default_suffix: str = 'html')[source]#

Return file name that isn’t already exist (adding (X)).

Parameters
file_namestr

the file name we want to add a (X) suffix if it exist.

default_suffixstr , default: ‘html’

the file suffix to add if it wasn’t provided in the file name.

Returns
str

a new file name if the file exists