import { Deno } from "https://deno.land/x/deno@v2.0.4/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.