//DatasetScanner d = new DatasetScanner(null, dirName, suffix, regexpPatternString, subdirs, olderThan);
//datasetManager.addDirectoryScan(d);
datasetManager.addDirectoryScan(dirName, suffix, regexpPatternString, subdirs, olderThan, null);
if (runMatcher != null) {
DateExtractor dateExtractor = new DateExtractorFromName(runMatcher, false);
datasetManager.setDateExtractor(dateExtractor);
}
}