I searched for one, but couldn’t find it - so here’s my first plugin effort.
Dead simple - if you fire in a file location it will return the extension of that file. Useful if you want to apply a class/show an icon for that file type - as used in the project I made it for:
{exp:pd_fileformat}{presentation_file}{/exp:pd_fileformat}
You can get it here.
