Skip to content

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

@ZiqianXu

Description

@ZiqianXu

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions