Skip to main content
Module

x/lume/deps/fs.ts>ensureSymlinkSync

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
function ensureSymlinkSync
import { ensureSymlinkSync } from "https://deno.land/x/lume@v2.1.2/deps/fs.ts";

Ensures that the link exists, and points to a valid file. If the directory structure does not exist, it is created. If the link already exists, it is not modified but error is thrown if it is not point to the given target. Requires the --allow-read and --allow-write flag.

Parameters

target: string | URL

the source file path

linkName: string | URL

the destination link path