FsUtils.directory.ensureExistence(dir [, root]) 
Method to ensure directory existence and create it and all directories needed on the path.
Parameters
| Type | Argument | Description | Default |
|---|---|---|---|
| string | dir |
A path to a directory. | Required |
| string | root |
A root path to join to the directory if it is a relative folder | ”” |
Returns
| Type | Description |
|---|---|
| void |
Examples
const FsUtils = require("xtrmaddons-node-fs-utils");
/* Test */
FsUtils.directory.ensureExistence("/pah/to/store/not/existing/folder/");