How do I delete a file in a zipfile
Hans Nowak
zephyr01 at alltel.net
Fri May 30 19:18:56 EDT 2003
Howard Lightstone wrote:
> I can create zipfiles just peachy.
>
> But, how do I delete/overwrite a file that already exists in a zipfile?
The documentation doesn't mention this, so I'm assuming you will have to create
a new file, with all the original files minus the one that's to be removed. I
think this is how programs like WinZip do it; create a new file with temporary
filename, delete the old file, rename the temp file.
More information about the Python-list
mailing list