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

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

.elementsObject

The list of supported elements in the attributes structure as defined by v4 of the sftp protocol.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/net/sftp/protocol/04/attributes.rb', line 48

def elements #:nodoc:
  @elements ||= [
    [:type,                :byte,    0],
    [:size,                :int64,   V01::Attributes::F_SIZE],
    [:owner,               :string,  F_OWNERGROUP],
    [:group,               :string,  F_OWNERGROUP],
    [:permissions,         :long,    V01::Attributes::F_PERMISSIONS],
    [:atime,               :int64,   F_ACCESSTIME],
    [:atime_nseconds,      :long,    F_ACCESSTIME | F_SUBSECOND_TIMES],
    [:createtime,          :int64,   F_CREATETIME],
    [:createtime_nseconds, :long,    F_CREATETIME | F_SUBSECOND_TIMES],
    [:mtime,               :int64,   F_MODIFYTIME],
    [:mtime_nseconds,      :long,    F_MODIFYTIME | F_SUBSECOND_TIMES],
    [:acl,                 :special, F_ACL],
    [:extended,            :special, V01::Attributes::F_EXTENDED]
  ]
end