function Deno.link allow-readallow-write link(oldpath: string,newpath: string,): Promise<void> Creates newpath as a hard link to oldpath. await Deno.link("old/name", "new/name"); Requires allow-read and allow-write permissions. Parameters oldpath: string newpath: string Return Type Promise<void>