deno / 1.23.2 / ~ / deno.mkdirsync.html /

Deno.mkdirSync

Synchronously creates a new directory with the specified path.

Deno.mkdirSync("new_dir");
Deno.mkdirSync("nested/directories", { recursive: true });
Deno.mkdirSync("restricted_access_dir", { mode: 0o700 });

Defaults to throwing error if the directory already exists.

Requires allow-write permission.

function mkdirSync( path: string | URL , options?: MkdirOptions) : void;
mkdirSync( path: string | URL , options?: MkdirOptions) : void

Parameters

path: string | URL
options?: MkdirOptions optional

Return Type

void

© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.mkdirSync