drivendataorg / repro-zipfile

A tiny, zero-dependency replacement for Python's zipfile.ZipFile for creating reproducible/deterministic ZIP archives.
Other
12 stars 4 forks source link

Overwrite permissions with fixed values #6

Closed jayqi closed 6 months ago

jayqi commented 6 months ago

Overwrites file-system permissions, stored in external_attr, with fixed values.

The default fixed values are 0o644 (rw-r--r--) for files and 0o755 (rwxr-xr-x) for directories, which matches the common default umask of 0o022 for root users on Unix systems. These can be changed with the variables REPRO_ZIPFILE_FILE_MODE and REPRO_ZIPFILE_DIR_MODE.

Closes #3.

codecov[bot] commented 6 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (6d04a4e) 85.7% compared to head (609cce6) 86.9%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6 +/- ## ======================================= + Coverage 85.7% 86.9% +1.2% ======================================= Files 1 1 Lines 91 115 +24 ======================================= + Hits 78 100 +22 - Misses 13 15 +2 ``` | [Files](https://app.codecov.io/gh/drivendataorg/repro-zipfile/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=drivendataorg) | Coverage Δ | | |---|---|---| | [repro\_zipfile.py](https://app.codecov.io/gh/drivendataorg/repro-zipfile/pull/6?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=drivendataorg#diff-cmVwcm9femlwZmlsZS5weQ==) | `86.9% <93.1%> (+1.2%)` | :arrow_up: |