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: [EMAIL PROTECTED] 
  | Web: http://beza1e1.tuxen.de
  | Jabber: [EMAIL PROTECTED]


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to