ensure_path_parent_exists

ensure_path_parent_exists#

tollan.utils.file.ensure_path_parent_exists(path: Path) Path[source]#

Ensure parent path of path exists.

Parameters:

path (Path) – File path whose parent directory should be created

Returns:

The input path unchanged

Return type:

Path