Mojo function
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 ifTrue
and path exists (defaultFalse
).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!