Created
July 26, 2016 04:41
-
-
Save 328/af91695e45acd64fc64ab4e4a5d2a8db to your computer and use it in GitHub Desktop.
mime type check script for ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'shared-mime-info' | |
path = 'hoge.xls' | |
p MIME.check_magics(path) #'application/x-ole-storage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment