archive formats: comments are specs only

This commit is contained in:
4DBug committed 2026-11-01 01:53:52 -05:00
1 parent 8bd1a9327c
commit e792c419d9
36 files changed
+172 -442

No files matched your search

+4 -9
View File
@@ -1,12 +1,7 @@
--!strict
-- archive/iso: ISO 9660 CD / DVD images (.iso) read into the standard Archive value through containers/Iso9660:
-- plain ISO 9660 names, Joliet and Rock Ridge (names, modes, owners, times, symlinks, relocated deep directories;
-- Rock Ridge is used when present, else Joliet, else the plain names: opts.prefer picks another), multi-extent files.
-- Directories are dir entries; file data reads lazily (a copy of the extents). meta.iso holds the volume facts
-- (volumeId, systemId, publisher, blockSize, blocks, created, joliet level, rockRidge, tree) and meta.boot the El
-- Torito boot catalog (platform, bootable, media, load segment, sector count, image LBA) when there is one.
-- Not supported: writing, UDF, interleaved files (read: Err.UNSUPPORTED), zisofs-compressed files (read: the stored
-- bytes), multi-session images (the first session).
-- archive/iso: ISO 9660 images through containers/Iso9660. Supports: plain names, Joliet, Rock Ridge (RR, else Joliet,
-- else plain), multi-extent files, El Torito boot catalog (meta.boot). Not supported: writing, UDF, interleaved files
-- (UNSUPPORTED), zisofs (stored bytes), multi-session images (the first session).
-- ------------------------------------------------------------------------------------------------ requires
local Err = require("@rosetta/core/Err")
@@ -25,7 +20,7 @@ local Iso = {
}
export type DecodeOptions = {
prefer: ("rockridge" | "joliet" | "iso9660")?, -- the name set (default: Rock Ridge, else Joliet, else plain)
prefer: ("rockridge" | "joliet" | "iso9660")?, -- default: Rock Ridge, else Joliet, else plain
maxEntries: number?, -- default 1e6
}