covid19cz / erouska-android

Fighting against COVID-19 via privacy-first Bluetooth tracing
https://erouska.cz
MIT License
202 stars 55 forks source link

Sort EFGS files to subdirs #539

Closed jendakol closed 3 years ago

jendakol commented 3 years ago

When downloading files from EFGS, they could (and do) have overlapping names so, with the current algorithm, all these ZIP files are in fact concatenated and are unable to be parsed.
This PR adds sorting these files to subdirectories per country (as they are in the storage bucket) which prevents the overlapping.

Note: The Supress is there because file.parentFile returns File? while we can be pretty sure the parent just exists. Feel free to propose a different solution for this.