Message389343
zinfo = zipfile.ZipInfo()
zinfo.date_time = (1980, 0, 0, 0, 0, 0)
zinfo.create_system = 0
external_attr == 0 may cause issues with permissions. I do something like this in my reproducible tarfile code:
if zinfo.isdir():
# 0755 + MS-DOS directory flag
zinfo.external_attr = 0o755 | 0x010
else:
zinfo.external_attr = 0o644 |
|
Date |
User |
Action |
Args |
2021-03-22 20:58:58 | christian.heimes | set | recipients:
+ christian.heimes, jondo, obfusk, eighthave |
2021-03-22 20:58:58 | christian.heimes | set | messageid: <1616446738.23.0.333275442828.issue43547@roundup.psfhosted.org> |
2021-03-22 20:58:58 | christian.heimes | link | issue43547 messages |
2021-03-22 20:58:57 | christian.heimes | create | |
|