readLinkSync method

Result<Path, PathIoError> readLinkSync()

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

Implementation

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