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