The only minor issue there is that I would wonder if anything would be done with the file path I provide. I would not want any kind of IO with that path. My understanding based on what you are saying is there would be no IO and only the extension of the path would be checked. But that might also confuse others