lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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