SyncPluginInstance.onFileRename method
SyncPluginInstance › onFileRename
Unofficial
Move the local file record to the new path, keep the oldest path not yet pushed in SyncLocalFile.previouspath, mark it as changed, and request a sync.Signature:
onFileRename(file: TAbstractFile, oldPath: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| file | TAbstractFile | The renamed file or folder. |
| oldPath | string | The path before the rename. |
Returns: void