Class Net::SFTP::Operations::Write
In: lib/net/sftp/operations/write.rb
Parent: Abstract

Implements the write operation. Handles, automatically, the looping necessary to write a large data set.

Methods

do_status   perform  

Constants

CHUNK_SIZE = 32 * 1024   The maximum size of data that will be written at one time.

Public Instance methods

Invoked when the server sends a status packet. If the status is FX_OK, then the callback is invoked (if all data has been written), or the next chunk is written to the server (if more data remains). Other status codes are handled by the superclass.

Perform the operation. Only CHUNK_SIZE portions of the data parameter will be written at a time, with subsequent chunks being writteni automatically when prior chunks complete.

[Validate]