Skip to content

ExternalFileManager.rename method

ExternalFileManager › rename

Unofficial

Renames a monitored external file and updates its monitor and vault path.

Signature:

rename(file: TExternalFile, path: string): Promise<void>

Parameters:

ParameterTypeDescription
fileTExternalFileThe external file to rename.
pathstringThe destination external-file path.

Returns: Promise<void> — A promise that resolves when the rename completes or the request is unsupported.