deno / 1.23.2 / ~ / deno.link.html /

Deno.link

Creates newpath as a hard link to oldpath.

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

Requires allow-read and allow-write permissions.

function link( oldpath: string , newpath: string) : Promise<void>;
link( oldpath: string , newpath: string) : Promise<void>

Parameters

oldpath: string
newpath: string

Return Type

Promise<void>

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.link