cdm/src/main/java/thredds/inventory/partition/DirectoryCollection.java
public static String makeCollectionName(String topCollectionName, Path dir) {
    int last = dir.getNameCount()-1;
    Path lastDir = dir.getName(last);
    String lastDirName = lastDir.toString();
    return topCollectionName +"-" + lastDirName;
  }
public static String makeCollectionName(String topCollectionName, Path dir) {
    int last = dir.getNameCount()-1;
    Path lastDir = dir.getName(last);
    String lastDirName = lastDir.toString();
    return topCollectionName +"-" + lastDirName;
  }
Create standard name = topCollectionName + last directory
@param topCollectionName from config, name of the collection
@param dir directory for this
@return  standard collection name, to name the index file