def file_type_full(file_loc):
try:
import magic
except:
print('[W] ACBS cannot find libmagic bindings, will use bundled one instead.')
import lib.magic as magic
mco = magic.open(magic.NONE | magic.MAGIC_SYMLINK)
mco.load()
try:
tp = mco.file(file_loc)
except:
print('[W] Unable to determine the file type!')
return 'data'
return tp.decode('utf-8')
评论列表
文章目录