Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.mkdirSync

Deprecated! UUID is part of the deno standard library
Latest
function Deno.mkdirSync
import { Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { mkdirSync } = Deno;

Creates a new directory with the specified path synchronously. If recursive is set to true, nested directories will be created (also known as "mkdir -p"). mode sets permission bits (before umask) on UNIX and does nothing on Windows.

  Deno.mkdirSync("new_dir");
  Deno.mkdirSync("nested/directories", true);

Parameters

path: string
optional
recursive: boolean
optional
mode: number