Quatrix JavaSctipt APIs
Space shortcuts
Quatrix JavaSctipt APIs QJA

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Renames specified file or folder

Parameters 

 

Name TypeDescription

id

required

string

id of specified folder or file

name

required

string

new file or folder name

cb

optional

functioncallback function



Example

Code Block
languagejs
this.filecmdRename = function(id, name, cb) {
  return _request({
    method: 'POST',
    url: '/file/rename',
    data: {
    id: id,
      name: name
    },
    callback : cb
  });
};

 

 

Quatrix JavaSctipt APIs QJA