public boolean find(String path, String pattern) code example
Example: public boolean find(String path, String pattern)
public boolean fitsTemplate(String path, String template) {
return FileSystems.getDefault()
.getPathMatcher("glob:" + template)
.matches(Paths.get(path));
}