Skip to content

FileExplorerView.afterCreate method

FileExplorerView › afterCreate

Unofficial

Is Executed after creating the file or folder and opens the view and/or starts the rename.

Signature:

afterCreate(file: TFile, newLeaf: boolean | PaneType): Promise<void>

Parameters:

Parameter Type Description
file TFile The created file.
newLeaf boolean | PaneType Where to open the view for this file.

Returns: Promise<void>A promise that resolves when the file is opened and/or rename is started.