class Net::SFTP::Protocol::V03::Base
Wraps the low-level SFTP
calls for version 3 of the SFTP
protocol.
None of these protocol methods block–all of them return immediately, requiring the SSH
event loop to be run while the server response is pending.
You will almost certainly never need to use this driver directly. Please see Net::SFTP::Session
for the recommended interface.
Public Instance Methods
readlink(path)
click to toggle source
Sends a FXP_READLINK packet to the server to request that the target of the given symlink on the remote host (path
) be returned.
# File lib/net/sftp/protocol/03/base.rb, line 23 def readlink(path) send_request(FXP_READLINK, :string, path) end
symlink(path, target)
click to toggle source
Sends a FXP_SYMLINK packet to the server to request that a symlink at the given path
be created, pointing at target
..
# File lib/net/sftp/protocol/03/base.rb, line 29 def symlink(path, target) send_request(FXP_SYMLINK, :string, path, :string, target) end
version()
click to toggle source
Returns the protocol version implemented by this driver. (3, in this case)
# File lib/net/sftp/protocol/03/base.rb, line 17 def version 3 end