archive formats: comments are specs only
This commit is contained in:
1 parent
8bd1a9327c
commit
e792c419d9
36 files changed
+172
-442
No files matched your search
@@ -1,9 +1,6 @@
|
||||
--!strict
|
||||
-- archive/tar: tar archives (ustar, pax, GNU long names; see containers/Tar), read into the standard Archive value
|
||||
-- (entries read lazily: a copy of the stored bytes) and written from any Archive value (a tar, a zip, a 7z: list() +
|
||||
-- read()). Compressed tars (.tar.gz / .tgz / .tar.zst / .tar.xz / .tar.bz2 / .tar.br) load through the api, which
|
||||
-- unwraps the single-stream archive and sniffs again (meta.compression names the outer format).
|
||||
-- Not supported: sparse files, multi-volume archives.
|
||||
-- archive/tar: tar archives (ustar, pax, GNU long names; containers/Tar). Supports: read (lazy), write from any
|
||||
-- Archive. Not supported: sparse files, multi-volume archives.
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------ requires
|
||||
local Err = require("@rosetta/core/Err")
|
||||
@@ -110,7 +107,6 @@ function TarFormat.encode(archive: any, opts: EncodeOptions?): (buffer?, Err.Err
|
||||
end
|
||||
|
||||
-- ------------------------------------------------------------------------------------------------ extras
|
||||
-- new() -> an empty tar Archive: a:add(name, data, { mtime, mode, dir }); a:write()
|
||||
function TarFormat.new(): any
|
||||
local a = Archive.new("tar", encode)
|
||||
a.meta.source = { format = "tar" }
|
||||
|
||||
Reference in new issue
Block a user