determine file type

Daniel Dittmar daniel at dittmar.net
Tue May 13 14:56:56 EDT 2003


Lee Harr wrote:
> Is there a method in the python standard library to determine
> the type of a file, similar to the unix file command?


An attempt to a python implementation of the unix file command (see man 
4 magic):
http://py.vaults.ca/~x/parnassus/parnassus/apyllo.py/514463245.39015704.339051821

Daniel





More information about the Python-list mailing list