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

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

#setstat(path, attrs) ⇒ Object

Sends a FXP_SETSTAT packet to the server, to update the attributes for the file at the given remote path (a string). The attrs parameter is a hash that defines the attributes to set.



134
135
136
# File 'lib/net/sftp/protocol/01/base.rb', line 134

def setstat(path, attrs)
  send_request(FXP_SETSTAT, :string, path, :raw, attribute_factory.new(attrs).to_s)
end