class HrrRbSftp::Protocol::Version1::Packets::SSH_FXP_REALPATH
This class implements SFTP protocol version 1 SSH_FXP_REALPATH
packet type, format, and responder.
Constants
- FORMAT
Represents
SSH_FXP_REALPATH
packet format.- TYPE
Represents
SSH_FXP_REALPATH
packet type.
Public Instance Methods
respond_to(request)
click to toggle source
Responds to SSH_FXP_REALPATH
request.
@param request [Hash{Symbol=>Object}] SSH_FXP_REALPATH
request represented in Hash. @return [Hash{Symbol=>Object}] Response represented in Hash. Its type is SSH_FXP_NAME
.
# File lib/hrr_rb_sftp/protocol/version1/packets/016_ssh_fxp_realpath.rb, line 31 def respond_to request log_debug { "absolute_path = File.absolute_path(#{request[:"path"].inspect})" } absolute_path = File.absolute_path(request[:"path"]) { :"type" => SSH_FXP_NAME::TYPE, :"request-id" => request[:"request-id"], :"count" => 1, :"filename[0]" => absolute_path, :"longname[0]" => absolute_path, :"attrs[0]" => {}, } end