std.fs.mkdir

std.fs

mkdir(pathname, mode, recursive) -> ok, err

Create a directory, optionally with parent directories

mode is an octal permission string passed to mkdir(2), e.g. "0755". Defaults to "0755" (subject to umask) when omitted. When recursive is true, any missing parent directories are created in order, each with the same mode. Returns nil and an error string if creation fails at any step.