FileManagerrenameFile

FileManager.renameFile() method

Rename or move a file safely, and update all links to it depending on the user’s preferences.

Signature:

renameFile(file: TAbstractFile, newPath: string): Promise<void>;

Parameters

ParameterTypeDescription
fileTAbstractFilethe file to rename
newPathstringthe new path for the file

Returns:

Promise<void>