Skip to content

FileExplorerView.createAbstractFile method

FileExplorerView › createAbstractFile

Unofficial

Creates an file or folder.

Signature:

createAbstractFile(type: "file" | "folder", location: TFolder, newLeaf: boolean | PaneType): Promise<void>

Parameters:

ParameterTypeDescription
type"file" | "folder"The type of file to create.
locationTFolderThe location where to create the file.
newLeafboolean | PaneTypeWhere to open the view for this file.

Returns: Promise<void>A promise that resolves when the file or folder is created.