lisc.io.utils.check_ext

lisc.io.utils.check_ext(file_name, ext)[source]

Check the extension for a file name, and add if missing.

Parameters
file_namestr

The name of the file.

extstr

The extension to check and add.

Returns
str

File name with the extension added.