ws-arch: containers/Tar + archive/tar (ustar / pax / GNU read + write, byte-identical to Python's tarfile) and archive/gzip (read + write, .tar.gz writing); tests incl. .tar.gz/.tgz/.tar.bz2/.tar.xz/.tar.zst/.tar.br unwrap through the api

This commit is contained in:
4DBug committed 2026-10-31 08:54:37 -05:00
1 parent 945abe6d94
commit a9110bdab2
9 files changed
+1298

No files matched your search

+24
View File
@@ -110,6 +110,30 @@ local list: { Entry } = {
return require("@formats/archive/bz2")
end,
},
{
name = "gzip",
category = "archive",
path = "archive/gzip",
extensions = { "gz", "tgz", "gzip" },
mime = { "application/gzip" },
deps = { "core/Err", "core/Bytes", "core/Crc32", "codecs/Deflate", "containers/Archive", "containers/Tar" },
caps = { decode = true, encode = true, stream = true },
load = function()
return require("@formats/archive/gzip")
end,
},
{
name = "tar",
category = "archive",
path = "archive/tar",
extensions = { "tar" },
mime = { "application/x-tar" },
deps = { "core/Err", "core/Bytes", "containers/Archive", "containers/Tar" },
caps = { decode = true, encode = true, variants = { "ustar", "pax", "gnu" } },
load = function()
return require("@formats/archive/tar")
end,
},
{
name = "xz",
category = "archive",