Richard d3e009966d Fix EEXIST errors in zipfile.py during extraction (#54)
When extracting zip archives, os.mkdir() could raise [Errno 17] EEXIST
in two places:

1. makedirs() - A directory might already exist between the path_exists
   check and the os.mkdir() call, or be created by a prior extraction step.

2. _extract_member() - makedirs() may have already created a directory
   when building parent paths for a file entry, and then a separate
   directory entry for the same path triggers os.mkdir() again.

Wrap both os.mkdir() calls in try/except OSError to handle this
gracefully.

Co-authored-by: Richard Taylor <RT@MacBookPro.lan>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 07:43:39 +01:00
2026-02-16 16:12:06 +01:00
2025-11-20 22:22:55 +01:00
2026-02-08 19:42:43 +01:00
2026-02-20 15:36:54 +01:00
2026-02-17 21:32:40 +01:00
2026-02-12 12:46:12 +01:00
2025-11-29 13:04:52 +01:00
2026-02-13 10:58:58 +01:00
2025-06-15 09:09:33 +02:00
2025-10-24 17:57:04 +02:00
2026-02-13 13:06:03 +01:00
S
Description
No description provided
Readme MIT 4.2 MiB
Languages
Python 75.3%
C 11.5%
JavaScript 7.2%
HTML 3.5%
Shell 1.4%
Other 1%