How to fresh or delete a file in azip-archive via zipfile module?

  • Thread starter =?windows-1251?b?xeLj5e3o6SDK7vHl7eru?=
  • Start date
?

=?windows-1251?b?xeLj5e3o6SDK7vHl7eru?=

Hi!

I need to fresh a zip-archive using zipfile. However, it seems it is no
function to fresh the archive. When I use the append-mode of ZipFile, the
written file is merely appended to the archive while the old copy is still in
the archive. As a result, there are several files with the same name in the
archive. Is it valid state of the archive?

I would to achieve the result using a delete/remove operation, but it is also
is not defined in the zipfile module.

The method I use now is the recreation the archive each time from scratch. Is
it possible to resolve the situation in a more simple way?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top