Type:
Class
Constants:
FIELDS : [ :checksum, :devmajor, :devminor, :gid, :gname, :linkname, :magic, :mode, :mtime, :name, :prefix, :size, :typeflag, :uid, :uname, :version, ]

Fields in the tar header

PACK_FORMAT : 'a100' + # name 'a8' + # mode 'a8' + # uid 'a8' + # gid 'a12' + # size 'a12' + # mtime 'a7a' + # chksum 'a' + # typeflag 'a100' + # linkname 'a6' + # magic 'a2' + # version 'a32' + # uname 'a32' + # gname 'a8' + # devmajor 'a8' + # devminor 'a155'

Pack format for a tar header

UNPACK_FORMAT : 'A100' + # name 'A8' + # mode 'A8' + # uid 'A8' + # gid 'A12' + # size 'A12' + # mtime 'A8' + # checksum 'A' + # typeflag 'A100' + # linkname 'A6' + # magic 'A2' + # version 'A32' + # uname 'A32' + # gname 'A8' + # devmajor 'A8' + # devminor 'A155'

Unpack format for a tar header

A header for a tar file

from

from(stream) Class Public methods Creates a tar header from

2015-04-09 18:19:48
update_checksum

update_checksum() Instance Public methods Updates the TarHeader's checksum

2015-04-09 18:29:01
new

new(vals) Class Public methods Creates a new

2015-04-09 18:22:16
empty?

empty?() Instance Public methods Is the tar entry empty?

2015-04-09 18:23:47