readLink method

Future<String> readLink(
  1. Object path
)

Resolves to the full path destination of the named symbolic link.

await Deno.symlink("./test.txt", "./test_link.txt");
const target = await Deno.readLink("./test_link.txt"); // full path of ./test.txt

Throws TypeError if called with a hard link.

Requires allow-read permission.

Implementation

_i2.Future<_i2.String> readLink(_i2.Object path) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'readLink',
      [path],
    ));