Tar.File
The entry of the tar archive.
content is nil for entries of a parsed archive until it is read with Tar:readFile, the data stays in the archive string at offset.
Fields
| Name | Type | Description |
|---|---|---|
path | string | The path of the entry inside of the archive, e.g. docs/readme.txt, directories end with /. |
type | Tar.FileType | The type of the entry. |
size | integer | The size of the content in bytes. |
mode | integer | The permission bits, e.g. 420 (0644). |
uid | integer | The user ID of the owner. |
gid | integer | The group ID of the owner. |
timestamp | integer | The Unix timestamp of the last modification in seconds. |
link | string | The target of the link, "" for other types. |
user | string | The user name of the owner. |
group | string | The group name of the owner. |
content | string | nil | The content, nil if it is still in the archive data. |
offset | integer | nil | The 1-based position of the content in the archive data. |