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

x/ningen/deps.ts>fs.ensureDirSync

Simple ninja build generator
Latest
function fs.ensureDirSync
Re-export
import { fs } from "https://deno.land/x/ningen@0.0.6/deps.ts";
const { ensureDirSync } = fs;

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

Parameters

dir: string