]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112795: Allow `/` folder in a zipfile (#112932)
authorAN Long <aisk@users.noreply.github.com>
Sun, 7 Jan 2024 01:14:18 +0000 (09:14 +0800)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 01:14:18 +0000 (01:14 +0000)
commit541c5dbb81c784afd587406be2cc82645979a107
tree447178bdd70fd7a8d866fe556e84eea4d8c6bee4
parent84d1f76092c24c4d6614797cc10eb8a231397646
gh-112795: Allow `/` folder in a zipfile (#112932)

Allow extraction (no-op) of a "/" folder in a zipfile, they are commonly added by some archive creation tools.

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/test/test_zipfile/_path/test_path.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2024-01-07-00-56-41.gh-issue-112932.OfhUu7.rst [new file with mode: 0644]