[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Lua binding to bzip?
- From: "Danilo Tuler" <tuler@...>
- Date: Tue, 25 Apr 2006 09:46:48 -0300
> After researching a bit, I remember that I would also need a
> libtar binding in lua as well (or combined in some way), and
> I'm simply not willing to program all that.
I wrote a tar reader once, I can try to find it in my drawers...
I used it to read tar.gz files, using gzip reading supported by lzlib.
local gfile = gzip.open("test.tar.gz", "rb")
local tarfile = tar.open(gfile)
local file = tarfile:open("abc.txt")
Is this what you are trying to accomplish?
> Does LuaZip support writing zip files as well as reading?
No. LuaZip uses zziplib under the hood (http://zziplib.sf.net).
Zziplib does not support writing (yet).
-- Danilo