mirror of https://github.com/CIRCL/PyCIRCLean
Fix regression with application mimetypes
parent
51bfaa1ff5
commit
37fc204b18
|
@ -246,11 +246,11 @@ class File(FileBase):
|
||||||
|
|
||||||
def application(self):
|
def application(self):
|
||||||
"""Process an application specific file according to its subtype."""
|
"""Process an application specific file according to its subtype."""
|
||||||
if self.subtype in self.app_subtype_methods:
|
for subtype, method in self.app_subtype_methods.items():
|
||||||
method = self.app_subtype_methods[self.subtype]
|
if subtype in self.subtype: # checking for partial matches
|
||||||
method()
|
method()
|
||||||
else:
|
return
|
||||||
self._unknown_app()
|
self._unknown_app() # if none of the methods match
|
||||||
|
|
||||||
def _executables(self):
|
def _executables(self):
|
||||||
"""Process an executable file."""
|
"""Process an executable file."""
|
||||||
|
|
Loading…
Reference in New Issue