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

string

id of specified folder or file

name

string

new file or folder name

cb

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