Entry
A single archive entry's metadata, with a method to open it for reading.
Entries are only available for archives opened in read mode, via
Archive.entries.
Fields
commentEntry comment.
compressed_sizeCompressed size in bytes.
compressionCompression method as
:STORED:,:DEFLATE:,:ZSTD:, or:UNKNOWN:.crc32CRC-32 checksum of the uncompressed data.
last_modifiedLast modification time as
DateTime, ornilwhen the stored timestamp cannot be represented.modeUnix permission bits, or
nilwhen the archive does not provide Unix metadata.nameEntry name as an
fs.unix.Path.sizeUncompressed size in bytes.
typeEntry type as
:FILE:,:DIR:,:SYMLINK:,:FIFO:,:CHAR_DEVICE:,:BLOCK_DEVICE:, or:UNKNOWN:.
Methods
open() -> File
Opens the entry for reading.
Errors
Raises a concurrency error if another file is already open in the archive.
open[R] block -> R
Opens the entry for reading and calls block with it. The file is closed
when block returns.
Parameters
| Name | Type | Description |
|---|---|---|
block |
((File) -> R) |
Called with the File. |
Errors
Raises a concurrency error if another file is already open in the archive.