Method: Net::SFTP::Protocol::V01::Base#mkdir

Defined in:
lib/net/sftp/protocol/01/base.rb

#mkdir(path, attrs) ⇒ Object

Sends a FXP_MKDIR packet to the server, to request that a new directory at path on the remote server be created, and with attrs (a hash) describing the attributes of the new directory.



168
169
170
# File 'lib/net/sftp/protocol/01/base.rb', line 168

def mkdir(path, attrs)
  send_request(FXP_MKDIR, :string, path, :raw, attribute_factory.new(attrs).to_s)
end