MCPcopy Create free account
hub / github.com/ahupp/python-magic / magic_file

Function magic_file

magic/__init__.py:296–297  ·  view source on GitHub ↗
(cookie, filename)

Source from the content-addressed store, hash-verified

294
295
296def magic_file(cookie, filename):
297 return _magic_file(cookie, coerce_filename(filename))
298
299
300_magic_buffer = libmagic.magic_buffer

Callers 1

from_fileMethod · 0.85

Calls 1

coerce_filenameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…