Method: Net::SFTP::Protocol::V01::Attributes.elements

Defined in:
lib/net/sftp/protocol/01/attributes.rb

.elementsObject

Returns the array of attribute meta-data that defines the structure of the attributes packet as described by this version of the protocol.



45
46
47
48
49
50
51
52
53
54
55
# File 'lib/net/sftp/protocol/01/attributes.rb', line 45

def elements #:nodoc:
  @elements ||= [
    [:size,                :int64,   F_SIZE],
    [:uid,                 :long,    F_UIDGID],
    [:gid,                 :long,    F_UIDGID],
    [:permissions,         :long,    F_PERMISSIONS],
    [:atime,               :long,    F_ACMODTIME],
    [:mtime,               :long,    F_ACMODTIME],
    [:extended,            :special, F_EXTENDED]
  ]
end