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

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

#fsetstat(handle, attrs) ⇒ Object

Sends a FXP_FSETSTAT packet to the server, to update the attributes for the file represented by the given handle (which must have been obtained from a FXP_HANDLE packet). The attrs parameter is a hash that defines the attributes to set.



142
143
144
# File 'lib/net/sftp/protocol/01/base.rb', line 142

def fsetstat(handle, attrs)
  send_request(FXP_FSETSTAT, :string, handle, :raw, attribute_factory.new(attrs).to_s)
end