... but you are restricted to make a difference between the file extensions only, aren't you?

Why shouldn't it have a flag that you can set in the script to search for the external textures of the models and add them to the published folder?