Looking to verify that there's no case-sensitive methods for processing file/path references.
This is for a use like looking up a file with a ".pdf" and/or ".PDF" extension in the directory without knowing whether it is upper- or lower-case.
java.nio.file.Files
doesn't seem to have it. the only way I can think of is checking both cases or using String.equalsIgnoreCase()
at it.
is there a better way of doing this?