tabensemb.utils.utils.add_postfix#

tabensemb.utils.utils.add_postfix(path)[source]#

If the input path exists, add a postfix f"-I{n}" to it, where n increases if path ends with f"-I{n}".

Parameters:
path

A path to a folder or a file that will be created.

Returns:
str

A path that can be created without conflict.