Method: Net::SFTP::Protocol::V01::Base#write
- Defined in:
- lib/net/sftp/protocol/01/base.rb
#write(handle, offset, data) ⇒ Object
Sends a FXP_WRITE packet to the server, requesting that data
(a string), be written to the file identified by handle
, starting at offset
bytes from the beginning of the file. The handle must be one that was returned via a FXP_HANDLE packet. Returns the new packet id.
111 112 113 |
# File 'lib/net/sftp/protocol/01/base.rb', line 111 def write(handle, offset, data) send_request(FXP_WRITE, :string, handle, :int64, offset, :string, data) end |