📅  最后修改于: 2022-03-11 14:56:50.440000             🧑  作者: Mango
public boolean fitsTemplate(String path, String template) {
return FileSystems.getDefault()
.getPathMatcher("glob:" + template)
.matches(Paths.get(path));
}