So I have csvs:
R-15_A.csv
R-16_A.csv
R-17_A.csv
R-15_B.csv
R-15_A_Processed.csv
R-15_B_Processed.csv
R-16_A_Processed.csv
R-17_A_Processed.csv
Been using commons.io's wildcardfilefilter but am confused at the filter.
So if I wanted to get a list of files that are A but not processed what would I use for the filter?
File dir = new File(".");
FileFilter fileFilter = new WildcardFileFilter("filter?");
File[] files = dir.listFiles(fileFilter);
for(File f:files)
{
log.info("service2: "+f.getName());
}
log.info("service2: size "+files.length);
答案 0 :(得分:0)
" * A.csv"应匹配' A'但不是“已处理”