Class: BrickFTP::RESTfulAPI::CreateFolder
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::CreateFolder
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/create_folder.rb
Overview
Create a folder
Instance Method Summary collapse
-
#call(path) ⇒ BrickFTP::Types::Folder
Creates a folder.
Methods included from Command
Instance Method Details
#call(path) ⇒ BrickFTP::Types::Folder
Creates a folder.
19 20 21 22 |
# File 'lib/brick_ftp/restful_api/create_folder.rb', line 19 def call(path) client.post("/api/rest/v1/folders/#{ERB::Util.url_encode(path)}") true end |