class DownloadGlobFilter extends DownloadDuplicateFilter {

    @Override
    public boolean accept(final Path file) {
        if(!super.accept(file)) {
            return false;
        }
        if(pattern.matcher(file.getName()).matches()) {
            return true;
        }
        if(log.isDebugEnabled()) {
            log.debug(String.format("Skip %s excluded with regex", file.getAbsolute()));
        }
        return false;
    }

    public  DownloadGlobFilter(final String glob);

}