Class: HrrRbSftp::Protocol::Version1::Packet::SSH_FXP_REALPATH
- Inherits:
-
Object
- Object
- HrrRbSftp::Protocol::Version1::Packet::SSH_FXP_REALPATH
- Includes:
- Common::Packetable
- Defined in:
- lib/hrr_rb_sftp/protocol/version1/packet/016_ssh_fxp_realpath.rb
Constant Summary collapse
- TYPE =
16
- FORMAT =
[ [DataType::Byte, :"type" ], [DataType::Uint32, :"request-id"], [DataType::String, :"path" ], ]
Instance Attribute Summary
Attributes included from Loggable
Instance Method Summary collapse
Methods included from Common::Packetable
Methods included from Loggable
#log_debug, #log_error, #log_fatal, #log_info, #log_warn
Instance Method Details
#respond_to(request) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/hrr_rb_sftp/protocol/version1/packet/016_ssh_fxp_realpath.rb', line 16 def respond_to request { :"type" => SSH_FXP_NAME::TYPE, :"request-id" => request[:"request-id"], :"count" => 1, :"filename[0]" => File.absolute_path(request[:"path"]), :"longname[0]" => File.absolute_path(request[:"path"]), :"attrs[0]" => {}, } end |