Answers for "public boolean find(String path, String pattern)"

0

public boolean find(String path, String pattern)

public boolean fitsTemplate(String path, String template) {
    return FileSystems.getDefault()
                      .getPathMatcher("glob:" + template)
                      .matches(Paths.get(path));
}
Posted by: Guest on May-13-2020

Browse Popular Code Answers by Language