makedirs
makedirs[PathLike: PathLike](path: PathLike, mode: Int = 511, exist_ok: Bool = False)
Creates a specified leaf directory along with any necessary intermediate directories that don't already exist.
Parameters:
- PathLike (
PathLike): The a type conforming to the os.PathLike trait.
Args:
- path (
PathLike): The path to the directory. - mode (
Int): The mode to create the directory with. - exist_ok (
Bool): Ignore error ifTrueand path exists (defaultFalse).
Raises:
If the operation fails.