2017-08-27

(sph libmagic)

binding to the libmagic library from the "file" utility that guesses file types

libmagic must be installed for the binding to work

part of sph-lib

import name

(sph libmagic)

exports

file->mime-types

procedure

signature

a ... ->

string:path ... -> (string:mime-type ...)

sph-libmagic-description

variable

string->mime-types

procedure

signature

a ... ->

string:content ... -> (string:mime-type ...)


tags: programming guile documentation library scheme sph-lib q1 libmagic highlight sph-libmagic