Getting mimetype of a file

Note that this utility will only provide information based on the
extension of the file. It will NOT provide it based on magic numbers.
For this, you need something like libmagic. I hope – one of these days
– to add magic lookup capability, but I’m a bit busy otherwise.

-austin

···

-----Original Message-----
From: Michael Neumann [mailto:mneumann@ntecs.de]
Sent: 31 May 2004 16.08
To: ruby-talk ML; segphault@sbcglobal.net
Cc: ruby-talk ML
Subject: Re: getting mimetype of a file

On Tue, Jun 01, 2004 at 05:03:40AM +0900, Ryan Paul wrote:

anybody know how to get the mimetype of a file in ruby?

You are in a maze of twisty little passages, all alike. // halo • statue


austin ziegler * austin.ziegler@evault.com