closest

The closest matching filter.

Use for example as:

closest(filters, p).orElse(GlobFilterClosestMatch(defaultFilter, AbsolutePath("."))).match(p);

Meta