overwriting file in ziparchive
There’s no way to do that with python zipfile module. You have to create a new zip file and recompress everything again from the first file, plus the new modified file. Below is some code to do just that. But note that it isn’t efficient, since it decompresses and then recompresses all data. import tempfile … Read more