mimemagic
mimemagic copied to clipboard
How to return "inode/symlink" mime-type for symlink file?
Is there a way to not follow symlink to target file and return "inode/symlink" directly?
I wrote a simple example here, as you can see the mime-type of symlink bar
file is the same as source file foo
.
It seems in mediatypes.go, the symlink media type has already been supported, How can I use mimemagic APIs to achieve this?
Thanks for your help!