readLink method

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

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

Implementation

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