Class: DropboxApi::Endpoints::Files::Move
- Defined in:
- lib/dropbox_api/endpoints/files/move.rb
Constant Summary collapse
- Method =
:post
- Path =
"/2/files/move".freeze
- ResultType =
DropboxApi::Metadata::Resource
- ErrorType =
DropboxApi::Errors::RelocationError
Instance Method Summary collapse
-
#move(from, to) ⇒ Object
Move a file or folder to a different location in the user’s Dropbox.
Methods inherited from Rpc
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Rpc
Instance Method Details
#move(from, to) ⇒ Object
Move a file or folder to a different location in the user’s Dropbox.
If the source path is a folder all its contents will be moved.
15 16 17 18 19 20 |
# File 'lib/dropbox_api/endpoints/files/move.rb', line 15 add_endpoint :move do |from, to| perform_request({ :from_path => from, :to_path => to }) end |