Skip to content

ZIP permissions #352

@mojodna

Description

@mojodna

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions