W3cubDocs

/Deno

Deno.linkSync

Synchronously creates newpath as a hard link to oldpath.

Deno.linkSync("old/name", "new/name");

Requires allow-read and allow-write permissions.

function linkSync(oldpath: string, newpath: string): void;
linkSync(oldpath: string, newpath: string): void

Parameters

oldpath: string
newpath: string

Return Type

void

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.linkSync