How to avoid FileNotFound exception when running Java on Linux because of case sensitiveness?-Collection of common programming errors
Well, first of all I think you should consider moving to a consistent naming scheme, rather than to use some workaround.
Anyway, what about reading in all file names and putting them into a map that contains the lower-case name as a key? You can then look up the correct file name from the map.
This would also allow you to detect a conflict, e.g. two files “FileA.txt” and “FILEA.TXT” in the same directory that have the same lower-case representations, in which case you know that you have to tackle the problem in a completely different way (because you have to know which one you want to have opened, and it’s ambiguous, and such a workaround won’t do it then).