You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
dalphus commentedon Apr 16, 2015
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.
pythongh-68164: Set the "regular file" bit in zipfile's writestr
pythongh-68164: Set the "regular file" bit in zipfile's writestr
gh-68164: Set the "regular file" bit in zipfile's writestr (GH-134232)
pythongh-68164: Set the "regular file" bit in zipfile's writestr (pyt…