FileManager.renameFile method
FileManager › renameFile
Official
Rename or move a file or folder safely, and update all links to it depending on the user's preferences.Signature:
renameFile(file: TAbstractFile, newPath: string): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
| file | TAbstractFile | the file to rename |
| newPath | string | the new path for the file |
Since: 0.11.0