logseg.utils¶
Functions¶
|
This function creates a directory if it doesn't already exist. |
|
This function deletes the contents of a directory if it exists. |
Module Contents¶
- logseg.utils.create_dir_if_not_exists(directory: pathlib.Path | str) None¶
This function creates a directory if it doesn’t already exist. :param directory: The directory to create (either a Path or a path string)
Returns:
- logseg.utils.delete_dir_contents_if_exists(directory: pathlib.Path | str) None¶
This function deletes the contents of a directory if it exists. :param directory: The directory to delete the contents of (either a Path or a path string)
Returns: