Skip to content

FileExplorerView.onRename method

FileExplorerView › onRename

Unofficial

Is called when a file in vault is renamed. Updates the file tree.

Signature:

onRename(file: TAbstractFile, oldPath: string): void

Parameters:

Parameter Type Description
file TAbstractFile The renamed file or folder.
oldPath string The old file or folder path.

Returns: void