otx.utils.utils#

Utility functions collection.

Functions

add_suffix_to_filename(file_path, suffix)

Add suffix to file name.

otx.utils.utils.add_suffix_to_filename(file_path: str | Path, suffix: str) Path[source]#

Add suffix to file name.

Parameters:
  • file_path (Union[str, Path]) – File path to add suffix to.

  • suffix (str) – Suffix to add.

Returns:

Suffix added path.

Return type:

Path