RSS issue - 1/1 Blog sphinx (12)


issue - 1/1

Issue in ZipFile on Windows

2017-09-14

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.

post


RSS issue - 1/1 2018-03 (3) 2018-04 (1) 2018-05 (1) 2018-08 (1) 2019-03 (2)