Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.mkdir

Creates a new directory with the specified path.

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

Defaults to throwing error if the directory already exists.

Requires allow-write permission.

function mkdir(path: string | URL, options?: MkdirOptions): Promise<void>;
§
mkdir(path: string | URL, options?: MkdirOptions): Promise<void>
[src]

§Parameters

§
path: string | URL
[src]
§
options?: MkdirOptions optional
[src]

§Return Type

§
Promise<void>
[src]