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.

classification
Title: ZipFile.writestr implies non-regular files
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dalphus
Priority: normal Keywords:

Created on 2015-04-16 20:48 by dalphus, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg241274 - (view) Author: D. Alphus (dalphus) Date: 2015-04-16 20:48
When ZipFile.writestr is called with arcname as its first parameter, it creates a ZipInfo object that has 0o0600 << 16 as its external_attr. Files created with write generally have 0o0100600 (S_IFREG is set indicating a regular file). Some archive managers (like Ark) will not populate the extracted file unless it contains this flag.
History
Date User Action Args
2022-04-11 14:58:15adminsetgithub: 68164
2015-04-16 20:48:40dalphuscreate