Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/fs/mod.ts>ensureSymlinkSync

Deno standard library
Go to Latest
function ensureSymlinkSync
import { ensureSymlinkSync } from "https://deno.land/std@0.203.0/fs/mod.ts";

Ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created.

Parameters

target: string | URL

the source file path

linkName: string | URL

the destination link path