Bogdanp / Bogdanp/racket-net-mime-type

Support for files without extensions

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Racket
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hello there,
I was wondering if its possible

```
> (path-mime-type "/etc/hosts")
#f
> (system "file -b --mime-type /etc/hosts")
text/plain
#t
```

using system is probably bad idea cuz performance and stuff but as a backup when the regex matching of extension didn't worked out

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.