Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

It is not a bug in archivers, it is just a broken archive. The ZIP archive 
contains a central directory which lists all files in the archive, so the 
archiver can just read the central directory without reading all archive to get 
the list of files. There are also local headers containing file names for every 
file. In 000.zip the central directory does not match local headers, it 
contains only the part of files. It is not fault of archivers that they trust 
the central directory, because it is a purpose of the central directory.

There are specialized tools which allow to restore files not in the central 
directory, similarly as there are tools which allow to restore just deleted 
files on the disk. But it is not a task of general archivers.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41102>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to