Skip to content

FileSystemManager.rename ​

JS
    FileSystemManager.rename(Object object)

Rename a file

Parameters

  • Object object: Input parameters; see the table below for details

Properties of object:

PropertyTypeRequiredDescription
oldPathstringYesSource file path; can be a regular file or a directory
newPathstringYesNew file path
successfunctionNoCallback function when the call succeeds
failfunctionNoCallback function when the call fails
completefunctionNoCallback function when the call completes