readLinkSync static method

Result<Path, IoError> readLinkSync(
  1. Path path
)

Reads a symbolic link, returning the file that the link points to.

Implementation

static Result<Path, IoError> readLinkSync(Path path) {
  return Fs.ioGuardSync(() => Path(Link(path.asString()).targetSync()));
}