mkdirAll
public func mkdirAll(String) -> Result[(), IoError]Creates path and any missing parent directories.
Walks back from the deepest non-existent component, recursing on
the parent first. If path already exists and is a directory, the
call is a no-op success; if it exists and is not a directory,
returns Err(IoError(kind: .AlreadyExists)) (EEXIST) without disturbing the file.
Each created intermediate uses the default mode 0o755.
Errors
Forwards any mkdir failure verbatim. Specific to this function:
Err(IoError(kind: .AlreadyExists)) when path exists as a non-directory.
Examples
mkdirAll("/tmp/foo/bar/baz"); // creates all three levels
Defined in lang/std/os/fs.ks