logseg.utils ============ .. py:module:: logseg.utils Functions --------- .. autoapisummary:: logseg.utils.create_dir_if_not_exists logseg.utils.delete_dir_contents_if_exists Module Contents --------------- .. py:function:: create_dir_if_not_exists(directory: Union[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: .. py:function:: delete_dir_contents_if_exists(directory: Union[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: