Function openDirAbsolute [src]
Opens a directory at the given path. The directory is a system resource that remains
open until close is called on the result.
See openDirAbsoluteZ for a function that accepts a null-terminated path.
Asserts that the path parameter has no null bytes.
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 openDirAbsolute(absolute_path: []const u8, flags: Dir.OpenOptions) File.OpenError!Dir
Parameters
absolute_path: []const u8
flags: Dir.OpenOptions
Source
pub fn openDirAbsolute(absolute_path: []const u8, flags: Dir.OpenOptions) File.OpenError!Dir {
assert(path.isAbsolute(absolute_path));
return cwd().openDir(absolute_path, flags);
}