tds/src/main/java/thredds/featurecollection/InvDatasetFcGrib.java
protected void addFileDatasets(DatasetBuilder parent, String parentPath, GribCollectionImmutable fromGc) throws IOException {

    DatasetBuilder filesParent = new DatasetBuilder(parent);
    filesParent.setName("Raw Files");
    filesParent.addServiceToCatalog(downloadService);
    ThreddsMetadata tmi = filesParent.getInheritableMetadata();
    tmi.set(Dataset.ServiceName, downloadService.getName());
    parent.addDataset(filesParent);

    List<MFile> mfiles = new ArrayList<>(fromGc.getFiles());
    Collections.sort(mfiles);

    // if not increasing (i.e. we WANT newest file listed first), reverse sort
    if (!this.config.getSortFilesAscending()) {
      Collections.reverse(mfiles);
    }

    for (MFile mfile : mfiles) {
      DatasetBuilder ds = new DatasetBuilder(parent);
      ds.setName(mfile.getName());
      String lpath = parentPath + "/" + FILES + "/" + mfile.getName();
      ds.put(Dataset.UrlPath, lpath);
      ds.put(Dataset.Id, lpath);
      ds.put(Dataset.DataSize, mfile.getLength());
      if (mfile.getLastModified() > 0) {
        CalendarDate cdate = CalendarDate.of(mfile.getLastModified());
        ds.put(Dataset.Dates, new DateType(cdate).setType("modified"));
      }
      filesParent.addDataset(ds);
    }
  }
protected void addFileDatasets(DatasetBuilder parent, String parentPath, GribCollectionImmutable fromGc) throws IOException {

    DatasetBuilder filesParent = new DatasetBuilder(parent);
    filesParent.setName("Raw Files");
    filesParent.addServiceToCatalog(downloadService);
    ThreddsMetadata tmi = filesParent.getInheritableMetadata();
    tmi.set(Dataset.ServiceName, downloadService.getName());
    parent.addDataset(filesParent);

    List<MFile> mfiles = new ArrayList<>(fromGc.getFiles());
    Collections.sort(mfiles);

    // if not increasing (i.e. we WANT newest file listed first), reverse sort
    if (!this.config.getSortFilesAscending()) {
      Collections.reverse(mfiles);
    }

    for (MFile mfile : mfiles) {
      DatasetBuilder ds = new DatasetBuilder(parent);
      ds.setName(mfile.getName());
      String lpath = parentPath + "/" + FILES + "/" + mfile.getName();
      ds.put(Dataset.UrlPath, lpath);
      ds.put(Dataset.Id, lpath);
      ds.put(Dataset.DataSize, mfile.getLength());
      if (mfile.getLastModified() > 0) {
        CalendarDate cdate = CalendarDate.of(mfile.getLastModified());
        ds.put(Dataset.Dates, new DateType(cdate).setType("modified"));
      }
      filesParent.addDataset(ds);
    }
  }
this catalog lists the individual files comprising the collection.