Home > @infiniteobjects/core-library-node > FileSystem > ensureFolder
Make a directory and its parents if needed
Signature:
static ensureFolder(dirPath: string): Promise<string>;
Parameter | Type | Description |
---|---|---|
dirPath | string |
Returns:
Promise<string>
The absolute path of the created directory
Think mkdir -p
.