readLinkSync method

Result<Path, IoError> readLinkSync()

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

Implementation

Result<Path, IoError> readLinkSync() => Env.isWindows
    ? WindowsPath(_string).readLinkSync().map((e) => Path(e._string))
    : UnixPath(_string).readLinkSync().map((e) => Path(e._string));