Class: BrickFTP::RESTfulAPI::CreateFolder

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/brick_ftp/restful_api/create_folder.rb

Overview

Create a folder

See Also:

Instance Method Summary collapse

Methods included from Command

included, #initialize

Instance Method Details

#call(path) ⇒ BrickFTP::Types::Folder

Creates a folder.

Parameters:

  • path (String)

Returns:

  • (BrickFTP::Types::Folder)

    Folders



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