File type recognition
Alan Kennedy
alanmk at hotmail.com
Wed Jun 11 07:38:07 EDT 2003
Sami Viitanen wrote:
> Does anyone know if there is a python script that can recognize the file
> type ie. is the file content binary or text.
Here is a script that does "magic" stuff, on *nix only.
http://www.demonseed.net/~jp/code/magic.py
HTH,
--
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/mailto/alan
More information about the Python-list
mailing list