Page History
Renames specified file or folder
Parameters
Name | Type | Description |
id | string | id of specified folder or file |
name | string | new file or folder name |
cb | function | callback function |
Example
Code Block | ||
---|---|---|
| ||
this.filecmdRename = function(id, name, cb) { return _request({ method: 'POST', url: '/file/rename', data: { id: id, name: name }, callback : cb }); }; |