readLink method

Future<Result<Path, IoError>> readLink()

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

Implementation

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