class Crystar::Header
- Crystar::Header
- Reference
- Object
Defined in:
tar/header.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. - #access_time : Time
- #access_time=(access_time : Time)
- #change_time : Time
- #change_time=(change_time : Time)
- #dev_major : Int64
- #dev_major=(dev_major : Int64)
- #dev_minor : Int64
- #dev_minor=(dev_minor : Int64)
-
#file_info
file_info returns an File::Info for the header
-
#flag : UInt8
Typeflag is the type of header entry.
-
#flag=(flag : UInt8)
Typeflag is the type of header entry.
- #flag=(v : Int)
- #format : Format
- #format=(format : Format)
- #gid : Int32
- #gid=(gid : Int32)
- #gid=(v : Int)
- #gname : String
- #gname=(gname : String)
-
#hash(hasher)
See
Object#hash(hasher) - #io : IO
- #link_name : String
- #link_name=(link_name : String)
-
#mod_time : Time
If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.
-
#mod_time=(mod_time : Time)
If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.
- #mode : Int64
- #mode=(mode : Int64)
- #name : String
- #name=(name : String)
-
#pax_records : Hash(String, String)
pax_records is a map of PAX extended header records.
-
#pax_records=(pax_records : Hash(String, String))
pax_records is a map of PAX extended header records.
- #size : Int64
- #size=(size : Int64)
- #size=(v : Int)
- #uid : Int32
- #uid=(uid : Int32)
- #uid=(v : Int)
- #uname : String
- #uname=(uname : String)
- #xattr : Hash(String, String)
- #xattr=(xattr : Hash(String, String))
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Typeflag is the type of header entry. The zero value is automatically promoted to either REG or DIR depending on the presence of a trailing slash in Name.
Typeflag is the type of header entry. The zero value is automatically promoted to either REG or DIR depending on the presence of a trailing slash in Name.
If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.
To use access_time or change_time, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.
If the Format is unspecified, then Writer#write_header rounds mod_time to the nearest second and ignores the access_time and change_time fields.
To use access_time or change_time, specify the Format as PAX or GNU. To use sub-second resolution, specify the Format as PAX.
pax_records is a map of PAX extended header records.
User-defined records should have keys of the following form: VENDOR.keyword Where VENDOR is some namespace in all uppercase, and keyword may not contain the '=' character (e.g., "CRYSTAL.mod.version"). The key and value should be non-empty UTF-8 strings.
When Writer#write_header is called, PAX records derived from the other fields in Header take precedence over PAXRecords.
pax_records is a map of PAX extended header records.
User-defined records should have keys of the following form: VENDOR.keyword Where VENDOR is some namespace in all uppercase, and keyword may not contain the '=' character (e.g., "CRYSTAL.mod.version"). The key and value should be non-empty UTF-8 strings.
When Writer#write_header is called, PAX records derived from the other fields in Header take precedence over PAXRecords.