Take a look at the standard module, mimetypes. Greg Sami Viitanen wrote: > Hi, > > > Does anyone know if there is a python script that can recognize the file > type ie. is the file content binary or text.