Closed roman-wb closed 9 years ago
Please be more specific. What did you do? What did you get? What did you expect?
Created blank text file "layout.liquid" or "readme.txt" or "README"
fm = FileMagic.new(FileMagic::MAGIC_MIME)
fm.file('README') # "inode/x-empty; charset=binary"
It correct return method file
?
ps sorry for my english
Yes, this is correct. Did you expect something else?
Compare the file
command:
$ touch README
$ file -i README
README: inode/x-empty; charset=binary
I thought so true text/plain
Thank you very much realized his mistake
Hi
For blank text file (ex layout.liquid), method file return "inode/x-empty; charset=binary"