Skip to main content
Module

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

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

Creates a new directory with the specified path. 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.

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

Parameters

path: string
optional
recursive: boolean
optional
mode: number

Returns

Promise<void>