readLink static method

FutureResult<Path, IoError> readLink(
  1. Path path
)

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

Implementation

static FutureResult<Path, IoError> readLink(Path path) async {
  return await Fs.ioGuard(() async {
    return Path((await Link(path.asString()).target()));
  });
}