import { Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.ns.d.ts";
const { link } = Deno;
Creates newpath
as a hard link to oldpath
.
await Deno.link("old/name", "new/name");
Requires allow-read
and allow-write
permissions.