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:

ParameterTypeDescription
fileTAbstractFileThe renamed file or folder.
oldPathstringThe old file or folder path.

Returns: void