mkdirSync
mkdirSync(path
, mode
): number
Creates the directory at the provided path
, as well as any necessary parent directories.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
path | PathLike | undefined | Path of the directory to create. |
mode | number | 0o777 | The file mode to set for the directories. Default: 0o777 . |
Returns
number
The number of directories created. If the directory already exists, returns 0
.