Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.unstable.d.ts>Deno.linkSync

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.linkSync
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.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.

Parameters

oldpath: string
newpath: string