2017-09-14 Issue in ZipFile on Windows¶
Issue 6839 happens when
a zip file is created on Windows. The created zip may contain
full path with \\
when the file list only contains /
.
This raises exception BadZipFile
with the following message:
File name in directory … and header … differ due to a mismatch
between backslashes. Another consequence found on GitHub:
zipfile raises: File name in directory X and header Y differ..
The class WinZipFile
owerwrites method zipfile.ZipFile.open
to fix the line which checks that names are consistent in the file list
and in the compressed content.