readlink
public func readlink(String) -> Result[String, IoError]Returns the target stored in the symlink at path.
Wraps readlink(2) with a 1 KiB buffer. readlink does not null-
terminate, so this function copies exactly the returned byte
count into the result string. Targets longer than 1 KiB are
silently truncated — the syscall returns a partial result rather
than failing.
Errors
Returns Err(IoError) if path is not a symlink (EINVAL),
missing (ENOENT), or any other libc failure.
Defined in lang/std/os/fs.ks