FileType does not care about the extension anymore.

This commit is contained in:
Jonas Winkler
2020-11-20 16:18:59 +01:00
parent f976a0b4ba
commit fc0ba2098a
4 changed files with 118 additions and 164 deletions

View File

@@ -197,7 +197,7 @@ class Consumer(LoggingMixin):
# If someone gave us the original filename, use it instead of doc.
file_info = FileInfo.from_path(self.filename)
file_info = FileInfo.from_filename(self.filename)
stats = os.stat(self.path)