Module

x/pagic/deps.ts>fs.ensureDirSync

A static site generator powered by Deno + React
Latest
function fs.ensureDirSync
import { fs } from "https://dotland.deno.dev/x/pagic@v1.6.3/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
import fs.ensureDirSync
import { fs } from "https://dotland.deno.dev/x/pagic@v1.6.3/deps.ts";
const { ensureDirSync } = fs;