@Override
    public boolean matches(Path path) {
      return pattern.matcher(path.toString()).matches();
    }
{@code PathMatcher} that matches the {@code toString()} form of a {@code Path} against a regex
{@code Pattern}.
jimfs/src/main/java/com/google/common/jimfs/PathMatchers.java