mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 22:10:15 +00:00
Document _get_filetype function
This commit is contained in:
@@ -180,6 +180,7 @@ class Templategen:
|
|||||||
return f'{prepend}{utils.header()}'
|
return f'{prepend}{utils.header()}'
|
||||||
|
|
||||||
def _get_filetype(self, src):
|
def _get_filetype(self, src):
|
||||||
|
"""use magic or the file command to get the mime type of a file"""
|
||||||
try:
|
try:
|
||||||
# pylint: disable=C0415
|
# pylint: disable=C0415
|
||||||
import magic
|
import magic
|
||||||
|
|||||||
Reference in New Issue
Block a user