From: Hongli L. <ho...@te...> - 2001-02-06 14:34:35
|
On Mon, 05 Feb 2001 23:05:47 Giovanni Corriga wrote: > I have written support for .tar.gz files. It was really easy, I had only > to switch from fopen() to gzopen() etc. > Files are attached. Those files haven't been committed yet. I was thinking about tgz support. And I think using your method (replacing fopen() to gzopen()) is a bad idea. It will cause a lot of duplicate code. Wouldn't it be better to add Gzip support directly into tarlib? Like this: GList *tl_getfiles (gboolean is_tgz) { FILE *f; if (is_tgz) f = gzopen(); else f = fopen(); } It isn't correct code but you get the idea. Or we can build it into GarpTar. |