guess file type in python

mark rkmr.em at gmail.com
Wed Feb 21 20:28:51 EST 2007


Is there any way to guess the file type using python?
thanks
mark

For example in unix:

file code.py
code.py: a python script text executable

file Eccentric.gif
Eccentric.gif: GIF image data, version 89a, 237 x 277



More information about the Python-list mailing list