When creating archive file with write and writeall method with arcname argument, the archive does not have meaningful permissions.
Related issue
To Reproduce
import py7zr
with py7zr.SevenZipFile(dest / "target.7z", "w") as szf:
szf.writeall(path="/tmp", arcname="foo")
with py7zr.SevenZipFile(dest/ "target.7z", "r") as szf:
szf.extractall()
Expected behavior
Should have 0644 permission at least.
Environment (please complete the following information):
- OS: Ubuntu Linux 24.04
- Python: 3.14
- py7zr version: v1.1.0
Test data(please attach in the report):
Additional context
The bug is reported and discussed in miurahr/aqtinstall#983 (comment)