Currently the code takes a string containing the directory and exact filename and has a Boolean to test the existence of the file.
String inFilepathAndFileName = "fileDirectory\subFolder\TestFile.txt"
inFilepathAndFileName.exists // returns 0 or 1
I want to expand the functionality to Boolean for a filename with a wildcard, such as:
"TestFile_001.txt"
The input would ideally be:
"fileDirectory\subFolder\TestFile*"
In this scenario, there will never be multiple files fitting this criteria, only 1 or 0.
Using the java.nio. libraries seem to have potential for this functionality but I cannot seem to find an efficient method with my lack of knowledge.