Re: ZipFile - file adding API incomplete?

2009-11-17 Thread Glenn Maynard
On Tue, Nov 17, 2009 at 9:28 AM, Dave Angel wrote: > I'm pretty sure that the ZIP format uses independent compression for each > contained file (member).  You can add and remove members from an existing > ZIP, and use several different compression methods within the same file.  So > the adaptive t

Re: ZipFile - file adding API incomplete?

2009-11-17 Thread Scott David Daniels
Glenn Maynard wrote: I want to do something fairly simple: read files from one ZIP and add them to another, so I can remove and replace files. This led me to a couple things that seem to be missing from the API. zip.write() only takes the filename and compression method, not a ZipInfo; wri

Re: ZipFile - file adding API incomplete?

2009-11-17 Thread Dave Angel
Diez B. Roggisch wrote: Glenn Maynard schrieb: I want to do something fairly simple: read files from one ZIP and add them to another, so I can remove and replace files. This led me to a couple things that seem to be missing from the API. The correct approach is to copy the data directly, s

Re: ZipFile - file adding API incomplete?

2009-11-17 Thread Diez B. Roggisch
Glenn Maynard schrieb: I want to do something fairly simple: read files from one ZIP and add them to another, so I can remove and replace files. This led me to a couple things that seem to be missing from the API. The simple approach would be to open each file in the source ZIP, and hand it off

ZipFile - file adding API incomplete?

2009-11-16 Thread Glenn Maynard
I want to do something fairly simple: read files from one ZIP and add them to another, so I can remove and replace files. This led me to a couple things that seem to be missing from the API. The simple approach would be to open each file in the source ZIP, and hand it off to newzip.write(). Ther