Detecting MIME type of a shared file

Michael Stone michael at laptop.org
Wed Mar 19 16:43:49 EDT 2008


On Tue, Mar 18, 2008 at 09:18:05AM -0500, James Simmons wrote:
> how can I tell what kind of file I am receiving when 
> someone shares a file with me?

You might examine python's mimetypes module or the 'file' command.

Michael




More information about the Devel mailing list