mkdir

abstract fun mkdir(path: Value, callback: Value?)

Method: fs.mkdir

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

Parameters

path

The path to the directory to create.

callback

The callback to provide the results or an error.


abstract fun mkdir(path: Value, options: Value?, callback: Value?)

Method: fs.mkdir

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

Parameters

path

The path to the directory to create.

options

The options to use for the directory create operation.

callback

The callback to provide the results or an error.


abstract fun mkdir(path: Path, options: MkdirOptions = MkdirOptions.DEFAULTS, callback: MkdirCallback)

Method: fs.mkdir

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

Parameters

path

The path to the directory to create.

options

The options to use for the directory create operation.

callback

The callback to provide the results or an error.