Skip to content

Latest commit

 

History

History
64 lines (34 loc) · 1.01 KB

File metadata and controls

64 lines (34 loc) · 1.01 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > FileSystem > ensureFolder

FileSystem.ensureFolder() method

Recursively creates a folder at a given path. Behind the scenes is uses fs-extra.ensureDirSync()<></>.

Signature:

static ensureFolder(folderPath: string): void;

Parameters

Parameter

Type

Description

folderPath

string

The absolute or relative path of the folder which should be created.

Returns:

void

Remarks

Throws an exception if anything in the folderPath is not a folder.