Skip to content

FileManager.getOrCreateFolder method

FileManager › getOrCreateFolder

Unofficial

Gets an existing folder by case-insensitive path, creating it (and any missing parents) if absent.

Signature:

getOrCreateFolder(path: string): Promise<TFolder>

Parameters:

Parameter Type Description
path string The folder path.

Returns: Promise<TFolder>A promise that resolves to the existing or newly created folder.