mimemagic icon indicating copy to clipboard operation
mimemagic copied to clipboard

How to return "inode/symlink" mime-type for symlink file?

Open ZiqianXu opened this issue 1 year ago • 0 comments

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!

ZiqianXu avatar Jul 27 '23 22:07 ZiqianXu