pub fn readLink(dir: Dir, io: Io, sub_path: []const u8, buffer: []u8) ReadLinkError!usize 1302
1303
1304pub fn readLink(dir: Dir, io: Io, sub_path: []const u8, buffer: []u8) ReadLinkError!usize {
return io.vtable.dirReadLink(io.userdata, dir, sub_path, buffer);
}
Obtain target of a symbolic link.
Returns how many bytes of
bufferare populated.Asserts that the path parameter has no null bytes.
On Windows,
sub_pathshould be encoded as WTF-8. On WASI,sub_pathshould be encoded as valid UTF-8. On other platforms,sub_pathis an opaque sequence of bytes with no particular encoding.