Sha256: d6e59ff612e8db480d64ed5bc1d927d2a8606bfac1d132bc6688c35a54a0220e

Contents?: true

Size: 1.47 KB

Versions: 4

Compression:

Stored size: 1.47 KB

Contents

#--
# =============================================================================
# Copyright (c) 2004, Jamis Buck (jgb3@email.byu.edu)
# All rights reserved.
#
# This source file is distributed as part of the Net::SFTP Secure FTP Client
# library for Ruby. This file (and the library as a whole) may be used only as
# allowed by either the BSD license, or the Ruby license (or, by association
# with the Ruby license, the GPL). See the "doc" subdirectory of the Net::SFTP
# distribution for the texts of these licenses.
# -----------------------------------------------------------------------------
# net-sftp website: http://net-ssh.rubyforge.org/sftp
# project website : http://rubyforge.org/projects/net-ssh
# =============================================================================
#++

require 'net/sftp/protocol/01/impl'

module Net ; module SFTP ; module Protocol ; module V_02

  # The implementation of the operations defined by version 2 of the SFTP
  # protocol. This simply adds support for the RENAME operation, otherwise
  # extending the version 1 implementation, unaltered.
  class Impl < V_01::Impl

    operation :rename

    alias :rename_raw :rename

    # This operation is special since a later version of the protocol adds
    # support for flags. In this version, the flags parameter is ignored,
    # but it exists for compatibility with later versions.
    def rename( id, name, new_name, flags=nil )
      rename_raw id, name, new_name
    end

  end

end ; end ; end ; end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
net-sftp-1.0.0 lib/net/sftp/protocol/02/impl.rb
net-sftp-0.9.0 lib/net/sftp/protocol/02/impl.rb
net-sftp-1.0.1 lib/net/sftp/protocol/02/impl.rb
net-sftp-0.5.0 lib/net/sftp/protocol/02/impl.rb