Hi,

How can I determine the type of a file from "magic bytes", similar to
what the "file" command on unix does? I found

http://docs.python.org/lib/module-mimetypes.html

but this only seems to use the filename (extension) for finding the
type. Any hints?

-Samuel

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to