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.
| Author | sam_ezeh |
|---|---|
| Recipients | sam_ezeh |
| Date | 2022年04月02日.12:21:15 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1648902075.65.0.178369010782.issue47200@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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月02日 12:21:15 | sam_ezeh | set | recipients: + sam_ezeh |
| 2022年04月02日 12:21:15 | sam_ezeh | set | messageid: <1648902075.65.0.178369010782.issue47200@roundup.psfhosted.org> |
| 2022年04月02日 12:21:15 | sam_ezeh | link | issue47200 messages |
| 2022年04月02日 12:21:15 | sam_ezeh | create | |