Skip to content

FileManager.createNewFolder method

FileManager › createNewFolder

Unofficial

Creates a new untitled folder in the vault at specified location.

Signature:

createNewFolder(location: TFolder): Promise<TFolder>

Parameters:

Parameter Type Description
location TFolder Location to create the folder in, defaults to root.

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