| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > FileSystem > ensureFolder
Recursively creates a folder at a given path. Behind the scenes is uses fs-extra.ensureDirSync()<></>.
Signature:
static ensureFolder(folderPath: string): void;|
Parameter |
Type |
Description |
|---|---|---|
|
folderPath |
string |
The absolute or relative path of the folder which should be created. |
Returns:
void
Throws an exception if anything in the folderPath is not a folder.