MkdirOptions

import { MkdirOptions } from "jsr:@ende/fs/unstable-mkdir";

interface ยท experimental

interface MkdirOptions

Options which can be set when using mkdir and mkdirSync.

Properties

recursive

recursive?: boolean

If set to true, means that any intermediate directories will also be created (as with the shell command mkdir -p).

Intermediate directories are created with the same permissions.

When recursive is set to true, succeeds silently (without changing any permissions) if a directory already exists at the path, or if the path is a symlink to an existing directory.

Default: false

mode

mode?: number

Permissions to use when creating the directory (defaults to 0o777, before the process's umask).

Ignored on Windows.

Source