Text of bugs.python.org › issue47200 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Issue 47200: Add ZipInfo.mode property - Python tracker

Python Home About News Documentation Downloads Community Foundation Developer's Guide Issue Tracker Issues Search Random Issue Summaries Issues with patch Easy issues Stats User Administration User List Committer List Help Tracker Documentation Tracker Development Report Tracker Problem Issue47200 ➜ This issue tracker has been migrated to GitHub , and is currently read-only . For more information, see the GitHub FAQs in the Python's Developer Guide.

Created on 2022-04-02 12:21 by sam_ezeh , last changed 2022-04-11 14:59 by admin . Files File name Uploaded Description Edit sam_ezeh.patch sam_ezeh , 2022-04-02 12:21 Pull Requests URL Status Linked Edit PR 32252 open sam_ezeh , 2022-04-02 13:50 Messages (1) msg416550 - (view) Author: Sam Ezeh (sam_ezeh) * Date: 2022-04-02 12:21 Initially, I was looking at bpo-18262 and saw the following Stack Overflow thread that was linked. https://stackoverflow.com/questions/434641/how-do-i-set-permissions-attributes-on-a-file-in-a-zip-file-using-pythons-zip/6297838 I've attached a patch that gives ZipInfo objects a `ZipInfo.mode` property getter and setter to get and set the file mode.

I considered adding ZipFile.chmod but I didn't know how it would work given that archives can contain duplicate files. As an aside, I wondered if there's a way to update file attributes inside zip archives without deleting and rewriting them and if not, whether it would be worthwhile to add one. History Date User Action Args 2022-04-11 14:59:58 admin set github: 91356 2022-04-02 21:29:27 ethan.furman set nosy: + alanmcintyre , serhiy.storchaka 2022-04-02 21:28:33 ethan.furman set nosy: + twouters , ethan.furman 2022-04-02 13:50:57 sam_ezeh set stage: patch review pull_requests: + pull_request30323 2022-04-02 12:21:15 sam_ezeh create Supported by The Python Software Foundation , Powered by Roundup Copyright © 1990-2022, Python Software Foundation Legal Statements