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.
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 becausefile.parentFile
returnsFile?
while we can be pretty sure the parent just exists. Feel free to propose a different solution for this.