Identifiers of identical types of third-party manufacturers?

The frenzy of file extensions and MIME types, as well as creator codes and magic numbers to determine file types, is a huge mess. Based on the Cocoa programming background, I assumed that I was spoiled: in Tiger OS X, I added a system called Uniform Type Identifiers (UTI), which makes the whole process normal.

Given that I am doing a bunch of web development (insert your favorite web development environment here), is there something similar that does not depend on the operation of OS X and - even better - works in several programming languages?

I am currently using the command fileon Linux to replicate some functions, but this is simply not the same. And, of course, everyone has huge search tables , but nothing is centralized.

Has anyone done this or ran it before?

+3
source share
1 answer

It seems that there is no such thing outside OS X. The command fileis the best you can do on Linux, all the file type identification systems that I saw on linux use it internally (when they don't just use the file extension).

In particular, you can use file -iMIME type output rather than simple human-readable lines.

UTI, , , , , , , , , - .

0

All Articles