lib/net/sftp/protocol/04/attributes.rb
# The list of supported elements in the attributes structure as defined
# by v4 of the sftp protocol.
The list of supported elements in the attributes structure as defined
by v4 of the sftp protocol.
The list of supported elements in the attributes structure as defined by v4 of the sftp protocol .
def elements 
        @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
def elements @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
The list of supported elements in the attributes structure as defined
by v4 of the sftp protocol.
The list of supported elements in the attributes structure as defined by v4 of the sftp protocol .
#:nodoc: