Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function ensureDirSync
import { ensureDirSync } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/fs/ensure_dir.ts";

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --alow-write flag.

Parameters

dir: string