cdm/src/main/java/ucar/nc2/ncml/Aggregation.java
public void addDatasetScan(Element crawlableDatasetElement, String dirName, String suffix,
          String regexpPatternString, String dateFormatMark, Set<NetcdfDataset.Enhance> enhanceMode, String subdirs, String olderThan) {

    datasetManager.addDirectoryScan(dirName, suffix, regexpPatternString, subdirs, olderThan, enhanceMode);

    this.dateFormatMark = dateFormatMark;
    if (dateFormatMark != null) {
      isDate = true;
      if (type == Type.joinExisting) type = Type.joinExistingOne; // tricky
      DateExtractor dateExtractor = new DateExtractorFromName(dateFormatMark, true);
      datasetManager.setDateExtractor(dateExtractor);
    }
 }
public void addDatasetScan(Element crawlableDatasetElement, String dirName, String suffix,
          String regexpPatternString, String dateFormatMark, Set<NetcdfDataset.Enhance> enhanceMode, String subdirs, String olderThan) {

    datasetManager.addDirectoryScan(dirName, suffix, regexpPatternString, subdirs, olderThan, enhanceMode);

    this.dateFormatMark = dateFormatMark;
    if (dateFormatMark != null) {
      isDate = true;
      if (type == Type.joinExisting) type = Type.joinExistingOne; // tricky
      DateExtractor dateExtractor = new DateExtractorFromName(dateFormatMark, true);
      datasetManager.setDateExtractor(dateExtractor);
    }
 }
public void addDatasetScan ( Element crawlableDatasetElement , String dirName , String suffix , String regexpPatternString , String dateFormatMark , Set < NetcdfDataset . Enhance > enhanceMode , String subdirs , String olderThan ) { datasetManager . addDirectoryScan ( dirName , suffix , regexpPatternString , subdirs , olderThan , enhanceMode ) ; this . dateFormatMark = dateFormatMark ; if ( dateFormatMark != null ) { isDate = true ; if ( type == Type . joinExisting ) type = Type . joinExistingOne ; // tricky
 DateExtractor dateExtractor = new DateExtractorFromName ( dateFormatMark , true ) ; datasetManager . setDateExtractor ( dateExtractor ) ; } }
Add a dataset scan

@param crawlableDatasetElement defines a CrawlableDataset, or null
@param dirName             scan this directory
@param suffix              filter on this suffix (may be null)
@param regexpPatternString include if full name matches this regular expression (may be null)
@param dateFormatMark      create dates from the filename (may be null)
@param enhanceMode         how should files be enhanced
@param subdirs             equals "false" if should not descend into subdirectories
@param olderThan           files must be older than this time (now - lastModified >= olderThan); must be a time unit, may ne bull
Add a dataset scan