rename

You can use this method to rename a file or directory.

Sample URL

https://mft.acme.com/cfcc/control?view=view/filetransfer/jsondirtree.jsp&action=deldir&path=/Dir1/FY2018/file1.txt&dest=/Dir1/FY2013/acct.file1.txt&org.apache.catalina.filters.CSRF_NONCE=0BC0207D47896DBF5EEA627EEA716193

Note: Only the file or directory name part of the "dest” parameter is used. The parent path is ignored.

Fixed Parameters Returned

The following table lists the parameters returned:

Parameters Description
"rc" The valid values are as follows:
  • 0: success.
  • 1: failure.
"errmsg" Message.
"path" The path value sent to the server.
"action" The action requested.