Vaulton(‘rename’)

Vault.on(‘rename’) method

Called when a file is renamed.

Signature:

on(name: 'rename', callback: (file: TAbstractFile, oldPath: string) => any, ctx?: any): EventRef;

Parameters

ParameterTypeDescription
name’rename’
callback(file: TAbstractFile, oldPath: string) any
ctxany(Optional)

Returns:

EventRef