use of com.github.dreamhead.moco.mount.MountPredicate in project moco by dreamhead.
the class MocoMount method include.
public static MountPredicate include(final String glob) {
checkNotNullOrEmpty(glob, "Glob should not be null or empty");
final PathMatcher matcher = FileSystems.getDefault().getPathMatcher("glob:" + glob);
return filename -> matcher.matches(Paths.get(filename));
}
Aggregations