Class: Net::SFTP::Protocol::V03::Base

Class | Net::SFTP::Protocol::V03::Base
In: | lib/net/sftp/protocol/03/base.rb lib/net/sftp/protocol/03/base.rb
Parent: | V02::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.

### Methods

readlink readlink symlink symlink version version

### Public Instance methods

readlink(path)

Sends a FXP_READLINK packet to the server to request that the target of the given symlink on the remote host (`path`) be returned.

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 23
    23:     def readlink(path)
    24:       send_request(FXP_READLINK, :string, path)
    25:     end

readlink(path)

Sends a FXP_READLINK packet to the server to request that the target of the given symlink on the remote host (`path`) be returned.

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 23
    23:     def readlink(path)
    24:       send_request(FXP_READLINK, :string, path)
    25:     end

symlink(path, target)

Sends a FXP_SYMLINK packet to the server to request that a symlink at the given `path` be created, pointing at `target`..

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 29
    29:     def symlink(path, target)
    30:       send_request(FXP_SYMLINK, :string, path, :string, target)
    31:     end

symlink(path, target)

Sends a FXP_SYMLINK packet to the server to request that a symlink at the given `path` be created, pointing at `target`..

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 29
    29:     def symlink(path, target)
    30:       send_request(FXP_SYMLINK, :string, path, :string, target)
    31:     end

version()

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

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 17
    17:     def version
    18:       3
    19:     end

version()

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

[Source]

        # File lib/net/sftp/protocol/03/base.rb, line 17
    17:     def version
    18:       3
    19:     end

[Validate]