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

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

#close(handle) ⇒ Object

Sends a FXP_CLOSE packet to the server for the given handle (such as would be returned via a FXP_HANDLE packet). Returns the new packet id.



95
96
97
# File 'lib/net/sftp/protocol/01/base.rb', line 95

def close(handle)
  send_request(FXP_CLOSE, :string, handle)
end