Method: Net::SFTP::Protocol::V01::Base#parse_data_packet
- Defined in:
- lib/net/sftp/protocol/01/base.rb
#parse_data_packet(packet) ⇒ Object
Parses the given FXP_DATA packet and returns a hash with one key, :data, which references the data returned in the packet.
42 43 44 |
# File 'lib/net/sftp/protocol/01/base.rb', line 42 def parse_data_packet(packet) { :data => packet.read_string } end |