Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
Home Page:https://pkg.go.dev/github.com/h2non/filetype?tab=doc
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
xlango opened this issue 2 years ago · comments
Not intended to recognize directories. You can simply check before calling the library whether a given path is a proper file or not.