FileType does not care about the extension anymore.

This commit is contained in:
Jonas Winkler
2020-11-20 16:18:59 +01:00
parent 41650f20f4
commit 3d5b66c2b7
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)