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!
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
barfile is the same as source filefoo.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!