Class: DropboxApi::Endpoints::Files::CreateFolder
- Defined in:
- lib/dropbox_api/endpoints/files/create_folder.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/create_folder'
- ResultType =
DropboxApi::Metadata::Folder
- ErrorType =
DropboxApi::Errors::CreateFolderError
Instance Method Summary collapse
-
#create_folder(path) ⇒ DropboxApi::Metadata::Folder
Create a folder at a given path.
Methods inherited from Rpc
#build_request, #initialize, #request_body
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Rpc
Instance Method Details
#create_folder(path) ⇒ DropboxApi::Metadata::Folder
Create a folder at a given path.
13 14 15 16 17 |
# File 'lib/dropbox_api/endpoints/files/create_folder.rb', line 13 add_endpoint :create_folder do |path| perform_request({ path: path }) end |