from pathlib import Path def create_directory_path(p: str): Path(p).mkdir(parents=True, exist_ok=True)