-
Notifications
You must be signed in to change notification settings - Fork 2
TAR_HEADER
A TAR_HEADER instance contains all metadata archives store. This page is based on the pax specification (ustar interchange format part).
Path to the file. Absolute paths are allowed, but most implementations turn them into relative paths.
Traditional UNIX style file permissions (0777, 0644, ...)
User id of the file owner.
Group id of the file group.
For regular files this contains the size of the file in bytes. For etar purposes, this is 0 for all other cases. More details can be found in the pax specification.
For files, this value is used to calculate the number of payload blocks that will follow the header.
Modification time of the file at archiving time. This value is measured in unix time (seconds since 00:00:00 UTC on 1 January 1970). The time library provides utilities to convert between time formats.
Indicates what payload type this header follows. These values are standardized:
| Flag | Description |
|---|---|
| '0' | Regular files ('%U' is allowed for backward compatibility but should not be used any longer) |
| '1' | Hardlink (only allowed if the content / link target is archived as well) |
| '2' | Symlink |
| '3' | Character special device |
| '4' | Block special device |
| '5' | Directory |
| '6' | FIFO |
| '7' | Files with some high-performance attribute (implementation defined, may treat as regular file) |
| 'A'-'Z' | Reserved for custom implementations |
| Everything else is reserved for further standardization
Target (pointee) of a link-type entry (empty/ignored otherwise)
Username of file owner
Groupname of file group
Device major number of special devices (block/character)
Device minor number of special devices (block/character)