Any way to change files in a ZIP archive?

Damjan gdamjan at gmail.com
Sat Nov 26 02:34:11 CET 2005


I am looking for a way to change a file that is inside a zip archive, in
python of course.

The thing is, I'm doing a CGI script that accepts a zip file (an OpenOffice
document), I need to make some transformations to one of the files in the
ZIP archive, but not touch any of the other files in it, and then send the
result back.

I've made the most of my script, but I can't find a way to replace (freshen)
the file that's already in the archive?


-- 
damjan



More information about the Python-list mailing list