FileExplorerView.createAbstractFile method
FileExplorerView › createAbstractFile
Unofficial
Creates an file or folder.Signature:
createAbstractFile(type: "file" | "folder", location: TFolder, newLeaf: boolean | PaneType): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| type | "file" | "folder" | The type of file to create. |
| location | TFolder | The location where to create the file. |
| newLeaf | boolean | PaneType | Where to open the view for this file. |
Returns: Promise<void> — A promise that resolves when the file or folder is created.