Skip to content

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): void

Parameters:

ParameterTypeDescription
fileTAbstractFileThe renamed file or folder.
oldPathstringThe path before the rename.

Returns: void