Function readLinkAbsolute [src]
Same as Dir.readLink, except it asserts the path is absolute.
On Windows, pathname should be encoded as WTF-8.
On WASI, pathname should be encoded as valid UTF-8.
On other platforms, pathname is an opaque sequence of bytes with no particular encoding.
Prototype
pub fn readLinkAbsolute(pathname: []const u8, buffer: *[max_path_bytes]u8) ![]u8
Parameters
pathname: []const u8
buffer: *[max_path_bytes]u8
Source
pub fn readLinkAbsolute(pathname: []const u8, buffer: *[max_path_bytes]u8) ![]u8 {
assert(path.isAbsolute(pathname));
return posix.readlink(pathname, buffer);
}