class ImageBatchCompressor {

	protected List<File> findMatchFiles() {
		String dir = FileUtils.convertDir(baseDir);
		File dirFile = new File(dir);
		return FileUtils.list(dirFile, file -> {
			String fullpath = FileUtils.replaceBackSlashToSlash(file.getPath());
			String subpath = StringUtils.substringAfter(fullpath, dir); 
			return Stream.of(antPatterns).anyMatch(pattern -> antMatcher.match(pattern, subpath));
		}, true);
	}

}