So what is the code you are using to get the unique file extensions?