This should be really simple. If I have a String like this:
../Test?/sample*.txt
then what is a generally-accepted way to get a list of fil
Since Java 8 you can use Files#find method directly from java.nio.file.
public static Stream find(Path start,
int maxDepth,
BiPredicate matcher,
FileVisitOption... options)
Files.find(startingPath,
Integer.MAX_VALUE,
(path, basicFileAttributes) -> path.toFile().getName().matches(".*.pom")
);