Function makeDirAbsolute [src]
Create a new directory, based on an absolute path.
Asserts that the path is absolute. See Dir.makeDir for a function that operates
on both absolute and relative paths.
On Windows, absolute_path should be encoded as WTF-8.
On WASI, absolute_path should be encoded as valid UTF-8.
On other platforms, absolute_path is an opaque sequence of bytes with no particular encoding.
Prototype
pub fn makeDirAbsolute(absolute_path: []const u8) !void
Parameters
absolute_path: []const u8
Source
pub fn makeDirAbsolute(absolute_path: []const u8) !void {
assert(path.isAbsolute(absolute_path));
return posix.mkdir(absolute_path, Dir.default_mode);
}