Sha256: 651030b9b45a84f0be38dd1c16e89f606758cb89253256d7a1a4dd3dd38ec063

Contents?: true

Size: 1018 Bytes

Versions: 167

Compression:

Stored size: 1018 Bytes

Contents

require 'net/sftp/protocol/01/base'

module Net; module SFTP; module Protocol; module V02

  # Wraps the low-level SFTP calls for version 2 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 < V01::Base

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

    # Sends a FXP_RENAME packet to the server to request that the file or
    # directory with the given +name+ (must be a full path) be changed to
    # +new_name+ (which must also be a path). The +flags+ parameter is
    # ignored in this version of the protocol.
    def rename(name, new_name, flags=nil)
      send_request(FXP_RENAME, :string, name, :string, new_name)
    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/02/base.rb
net-sftp-backports-4.0.7.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.6.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.5.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.4.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.3.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.2.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.1.backports lib/net/sftp/protocol/02/base.rb
net-sftp-backports-4.0.0.backports lib/net/sftp/protocol/02/base.rb
net-sftp-4.0.0 lib/net/sftp/protocol/02/base.rb
net-sftp-4.0.0.rc1 lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-3.0.0/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/lib/net/sftp/protocol/02/base.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/net-sftp-2.1.2/lib/net/sftp/protocol/02/base.rb
net-sftp-3.0.0 lib/net/sftp/protocol/02/base.rb