File type recognition

Alan Kennedy alanmk at
Wed Jun 11 13:38:07 CEST 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.


alan kennedy
check http headers here:
email alan:    

More information about the Python-list mailing list