, , .
File::MimeInfo MimeInfo, . - .
File::Type, , , , , script 'if'. , , "", .
The best thing you can do with unknown file types is to try to crack them using the hex editor or run them through the "lines" and see if you recognize anything. If you decide how to identify the file, you can go as a File :: Type solution , because as far as I can figure it out, it is at least easy to extend.
source
share