1
0
Fork 0

Document the previous commit

This commit is contained in:
jvoisin 2019-02-25 15:37:44 +01:00
parent 545dccc352
commit eb2e702f37
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ class ArchiveBasedAbstractParser(abstract.AbstractParser):
items = list() # type: List[zipfile.ZipInfo]
for item in sorted(zin.infolist(), key=lambda z: z.filename):
# Some fileformats do require to have the `mimetype` file
# as the first file in the archive.
if item.filename == 'mimetype':
items = [item] + items
else: