From: Samuele P. <ped...@bl...> - 2002-10-10 11:35:57
|
> > Hi, > > I have been trying to use zipfile.ZipFile() with mode="a" to add files to an > archive. > > However when I try to perform a write, each file simply overwrites the > previous one. > > I have tried exactly the same code in Python 2.2 and it works differently. > For instance, in Jython, opening a non-existent zip file with mode="a" > creates the file, whereas a runtime error is generated if you perform the > same action in Python, which requires the file to be present. If I create > the file, open it with mode="a" and write files to the archive, this works > fine with Python. > > Perhaps someone out there can verify that this is indeed a bug, or perhaps I > am doing somthing wrong. > it's a bug, please report it on SF, Thanks. |