class BrickFTP::RESTfulAPI::MoveFolder
Move or rename a file or folder
@see developers.files.com/#move-or-rename-a-file-or-folder Move or rename a file or folder
### Params
PARAMETER | TYPE | DESCRIPTION —————- | —— | ———– move-destination | string | Full path of the file or folder. Maximum of 550 characters.
Constants
- Params
Public Instance Methods
call(path, params)
click to toggle source
Moves or renames a file or folder to the destination provided in the `move-destination` parameter in the request body. Note that a move/rename will fail if the destination already exists.
@param [String] path Full path of the file or folder. Maximum of 550 characters. @param [BrickFTP::RESTfulAPI::MoveFolder::Params] params parameters
# File lib/brick_ftp/restful_api/move_folder.rb, line 35 def call(path, params) client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", params.to_h.compact) true end