Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZIP permissions #352

Open
mojodna opened this issue Sep 29, 2018 · 0 comments
Open

ZIP permissions #352

mojodna opened this issue Sep 29, 2018 · 0 comments
Assignees

Comments

@mojodna
Copy link

mojodna commented Sep 29, 2018

When unzipping an archive with unzip (e.g. s3://vector-tiles-prod/20180326/a8a6c/all/11/333/744.zip), files have 0000 permissions and need to be manually chmod'd by root to become readable.

The fix appears to be to add

info.external_attr = 0755 << 16L

after

info = zipfile.ZipInfo(tile_name, date_time)

Ditto for

zip_info = zipfile.ZipInfo(fmt_data.name, date_time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants