[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] mime-type of a file?
From: |
Andreas Zwinkau |
Subject: |
[Chicken-users] mime-type of a file? |
Date: |
Wed, 25 Oct 2006 00:04:54 +0200 |
How do i get the mime-type of a file? Is there an egg for this? The
magic.egg doesn't provide this, does it?
I wrote myself a function, but it isn't good:
(define (mime-type path)
(call-with-input-pipe (format "mimedb ~A" path)
(lambda (io)
(read-line io))))
--
Gottes Segen!
Andi
| Mail: address@hidden
| Web: http://beza1e1.tuxen.de
| Jabber: address@hidden
- [Chicken-users] mime-type of a file?,
Andreas Zwinkau <=