link method

Future<void> link(
  1. String oldpath,
  2. String newpath
)

Creates newpath as a hard link to oldpath.

await Deno.link("old/name", "new/name");

Requires allow-read and allow-write permissions.

Implementation

_i2.Future<void> link(
  _i2.String oldpath,
  _i2.String newpath,
) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'link',
      [
        oldpath,
        newpath,
      ],
    ));