mkdirSync

abstract fun mkdirSync(path: Value): String?

Method: fs.mkdirSync

Create a directory, synchronously, specified by the provided path.

Return

The path to the directory created, or null if an error occurred.

Parameters

path

The path to the directory to create.


abstract fun mkdirSync(path: Value, options: Value?): String?
abstract fun mkdirSync(path: Path, options: MkdirOptions = MkdirOptions.DEFAULTS): String?

Method: fs.mkdirSync

Create a directory, synchronously, specified by the provided path.

Return

The path to the directory created, or null if an error occurred.

Parameters

path

The path to the directory to create.

options

The options to use for the directory create operation.