class Net::SFTP::Protocol::V06::Base
see Net::SFTP::Session for the recommended interface.
You will almost certainly never need to use this driver directly. Please
pending.
requiring the SSH event loop to be run while the server response is
None of these protocol methods block–all of them return immediately,
Wraps the low-level SFTP calls for version 6 of the SFTP protocol.
def attribute_factory
Returns the Attributes class used by this version of the protocol
def attribute_factory V06::Attributes end
def block(handle, offset, length, mask)
lock to acquire, and must be a combination of one or more of the
+length+. The +mask+ parameter is a bitfield indicating what kind of
be obtained on the given +handle+, for the given byte +offset+ and
Sends a FXP_BLOCK packet to the server to request that a byte-range lock
def block(handle, offset, length, mask) send_request(FXP_BLOCK, :string, handle, :int64, offset, :int64, length, :long, mask) end
def link(new_link_path, existing_path, symlink)
at +new_link_path+, pointing to +existing_path+. If +symlink+ is true, a
Sends a FXP_LINK packet to the server to request that a link be created
def link(new_link_path, existing_path, symlink) send_request(FXP_LINK, :string, new_link_path, :string, existing_path, :bool, symlink) end
def symlink(path, target)
older FXP_SYMLINK packet type, so this method simply calls the #link
Provided for backwards compatibility; v6 of the SFTP protocol removes the
def symlink(path, target) link(path, target, true) end
def unblock(handle, offset, length)
must all exactly match the parameters that were given when the lock was
given byte +offset+ and +length+. The +handle+, +offset+, and +length+
acquired byte-range lock be released on the given +handle+, for the
Sends a FXP_UNBLOCK packet to the server to request that a previously
def unblock(handle, offset, length) send_request(FXP_UNBLOCK, :string, handle, :int64, offset, :int64, length) end
def version
Returns the protocol version implemented by this driver. (6, in this
def version 6 end