prokbert.general_utils.create_directory_for_filepath
- prokbert.general_utils.create_directory_for_filepath(filepath: str) None
Given a file path, creates the underlying directory structure if it doesn’t already exist.
- Parameters
filepath (str) – The path to the file for which the directory structure should be created.
- Raises
ValueError – If the provided path is empty or None.
OSError – If there’s an error creating the directory structure.