I need to write a function that gets a filepath and gives back what kind of file is that in a consistent way.

I thought i could use my beloved old TYPE and CREATOR, then I realized that in MacOS X not every file has got them.
So i can check both the extension and the HFSFileType.


Still i need a consistent way to express the file type. I need something that given an HFSFileType returns the 'most used' extension, or something that from an extension determines a file type.
Is there anything like that?


Thanks in advance.

-enrico

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to