6 Commits

Author SHA1 Message Date
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
Thomas Farstrike dbda2dc8db zipfile.py: don't force absolute paths 2025-05-16 16:29:05 +02:00
Thomas Farstrike 80283705f4 appstore: install from zip works 2025-04-28 23:25:38 +02:00
Thomas Farstrike 0969076770 Use self. more 2025-04-28 22:42:19 +02:00
Thomas Farstrike b05eb88867 Try to fix micropython compatibility 2025-04-28 22:37:29 +02:00
Thomas Farstrike 5ad919d510 Add zipfile.py 2025-04-28 22:29:21 +02:00