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

x/fsrouter/deps.ts>fs.ensureSymlinkSync

A file system based router for Deno.
Go to Latest
function fs.ensureSymlinkSync
import { fs } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { ensureSymlinkSync } = fs;

Ensures that the link exists. If the directory structure does not exist, it is created.

Parameters

src: string

the source file path

dest: string

the destination link path