overwriting file in ziparchive
overwriting file in ziparchive Question: I have archive.zip with two files: hello.txt and world.txt I want to overwrite hello.txt file with new one with that code: import zipfile z = zipfile.ZipFile(‘archive.zip’,’a’) z.write(‘hello.txt’) z.close() but it won’t overwrite file, somehow it creates another instance of hello.txt — take a look at winzip screenshot: Since there is …
Total answers: 5