FileSystemManager.rename
JS
FileSystemManager.rename(Object object)Rename a file
Parameters
- Object object: Input parameters; see the table below for details
Properties of object:
| Property | Type | Required | Description |
|---|---|---|---|
| oldPath | string | Yes | Source file path; can be a regular file or a directory |
| newPath | string | Yes | New file path |
| success | function | No | Callback function when the call succeeds |
| fail | function | No | Callback function when the call fails |
| complete | function | No | Callback function when the call completes |
