@Override
    public boolean filterPath(Path filePath) {
        if (getIncludeMatchers().isEmpty() && getExcludeMatchers().isEmpty()) {
            return false;
        }

        // compensate for the fact that Flink paths are slashed
        final String path =
                filePath.hasWindowsDrive() ? filePath.getPath().substring(1) : filePath.getPath();

        final java.nio.file.Path nioPath = Paths.get(path);

        for (PathMatcher matcher : getIncludeMatchers()) {
            if (matcher.matches(nioPath)) {
                return shouldExclude(nioPath);
            }
        }

        return true;
    }
@Test
    void testMatchAllFilesByDefault() {
        GlobFilePathFilter matcher =
                new GlobFilePathFilter(Collections.emptyList(), Collections.emptyList());

        assertThat(matcher.filterPath(new Path("dir/file.txt"))).isFalse();
    }