Sha256: 5db5e564c2be1947f0eb9272b395d17e100fa6b837d5c5a08927a5656065f58c

Contents?: true

Size: 1.07 KB

Versions: 167

Compression:

Stored size: 1.07 KB

Contents

require 'net/sftp/protocol/02/base'

module Net; module SFTP; module Protocol; module V03

  # 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.
  class Base < V02::Base

    # Returns the protocol version implemented by this driver. (3, in this
    # case)
    def version
      3
    end

    # Sends a FXP_READLINK packet to the server to request that the target of
    # the given symlink on the remote host (+path+) be returned.
    def readlink(path)
      send_request(FXP_READLINK, :string, path)
    end

    # Sends a FXP_SYMLINK packet to the server to request that a symlink at the
    # given +path+ be created, pointing at +target+..
    def symlink(path, target)
      send_request(FXP_SYMLINK, :string, path, :string, target)
    end

  end

end; end; end; end

Version data entries

167 entries across 129 versions & 10 rubygems

Version Path
net-sftp-backports-4.0.8.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.7.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.6.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.5.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.4.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.3.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.2.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.1.backports lib/net/sftp/protocol/03/base.rb
net-sftp-backports-4.0.0.backports lib/net/sftp/protocol/03/base.rb
net-sftp-4.0.0 lib/net/sftp/protocol/03/base.rb
net-sftp-4.0.0.rc1 lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/lib/net/sftp/protocol/03/base.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/lib/net/sftp/protocol/03/base.rb
net-sftp-3.0.0 lib/net/sftp/protocol/03/base.rb