Unable to get file extension after copying to a folder

And then there are special characters and numbers, too. Some of this results from the fact that different files can contain very different data. For example, a .txt file contains text, while a .mus fi...