Info-ZIP Extra for UNIX uid/gid
# File lib/zip/zip.rb, line 1762 def initialize(binstr = nil) @uid = 0 @gid = 0 binstr and merge(binstr) end
# File lib/zip/zip.rb, line 1779 def ==(other) @uid == other.uid && @gid == other.gid end
# File lib/zip/zip.rb, line 1769 def merge(binstr) binstr == "" and return size, content = initial_parse(binstr) # size: 0 for central direcotry. 4 for local header return if(! size || size == 0) uid, gid = content.unpack("vv") @uid ||= uid @gid ||= gid end
# File lib/zip/zip.rb, line 1788 def pack_for_c_dir "" end
# File lib/zip/zip.rb, line 1784 def pack_for_local [@uid, @gid].pack("vv") end