symlink

public func symlink(String, String) -> Result[(), IoError]

Creates a symbolic link at path pointing to target.

Wraps symlink(2). The target is stored verbatim — it is not resolved or validated, so dangling links are allowed and relative targets resolve relative to the directory containing the link.

Errors

Returns Err(IoError) on any libc failure; errno is captured.

Defined in lang/std/os/fs.ks