legacy/src/main/java/thredds/cataloggen/DirectoryScanner.java
public InvCatalog getDirCatalog( File directory, String filterPattern, boolean sortInIncreasingOrder, boolean addDatasetSize )
  {
    return( this.getDirCatalog( directory, filterPattern, sortInIncreasingOrder, null, addDatasetSize, null, null, null) );
  }
public InvCatalog getDirCatalog( File directory, String filterPattern, boolean sortInIncreasingOrder, boolean addDatasetSize )
  {
    return( this.getDirCatalog( directory, filterPattern, sortInIncreasingOrder, null, addDatasetSize, null, null, null) );
  }
Return a catalog for the given directory.

@param directory - the directory to represent as a catalog.
@param filterPattern
@param sortInIncreasingOrder
@return An InvCatalog that represents the given directory of datasets.

@throws NullPointerException if the given directory is null.
@throws IllegalArgumentException if the given directory is not actually a directory or if it is not under the service base URL directory.