www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Tango zip or external command line zip

reply Lester L. Martin II <Sarah ewam-associates.com> writes:
Dear Community,
I am asking is Tango's zip ability enough to decompress its own zip package,
dmd's and dsss's.  If not has anyone written a zip lib for D.
I would prefer to use a zip lib with commands like the following compared to
tango's current zip. 
FastZip fz = new FastZip;
fz.Extract(filein,fileout,filter);
fz.Zip(dirin,fileout,filter);
If we don't have this would it be easier to at installation time download a
command line zip utility and call it to unzip items.  
Which is easier?
Lester L. Martin II
Oct 02 2007
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Lester L. Martin II wrote:

 Dear Community,
 I am asking is Tango's zip ability enough to decompress its own zip
 package, dmd's and dsss's.  

Not yet, currently Tango can only do compressed streams.
 If not has anyone written a zip lib for D. I 
 would prefer to use a zip lib with commands like the following compared to
 tango's current zip. FastZip fz = new FastZip;
 fz.Extract(filein,fileout,filter); fz.Zip(dirin,fileout,filter);
 If we don't have this would it be easier to at installation time download
 a command line zip utility and call it to unzip items. Which is easier?
 Lester L. Martin II

We hope to have at least similar functionality through the vfs package within a couple of releases. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 02 2007
parent reply BCS <ao pathlink.com> writes:
Reply to Lars,

 Lester L. Martin II wrote:
 
 Dear Community,
 I am asking is Tango's zip ability enough to decompress its own zip
 package, dmd's and dsss's.

Not yet, currently Tango can only do compressed streams.

how hard would it be to make a wrapper?
Oct 02 2007
parent Lars Ivar Igesund <larsivar igesund.net> writes:
BCS wrote:

 Reply to Lars,
 
 Lester L. Martin II wrote:
 
 Dear Community,
 I am asking is Tango's zip ability enough to decompress its own zip
 package, dmd's and dsss's.

Not yet, currently Tango can only do compressed streams.

how hard would it be to make a wrapper?

There isn't really anything to wrap beyond what is already wrapped in the streams. It is just a tedious matter of utilizing it. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Oct 02 2007