Ignore:
Timestamp:
2016-11-10T19:25:14+13:00 (7 years ago)
Author:
davidb
Message:

Only need to create a volume's pages output directory is _output_dir has been specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/PerPageJSONFlatmap.java

    r31090 r31096  
    8686            String json_dir = ClusterFileIO.removeSuffix(json_file_in,".json.bz2");
    8787            String page_json_dir = json_dir + "/pages";
    88             ClusterFileIO.createDirectoryAll(_output_dir + "/" + page_json_dir);
    8988
     89            if (_output_dir != null) {
     90                // Only need to do this once per volume, so easier to here than in the per-page Map
     91                ClusterFileIO.createDirectoryAll(_output_dir + "/" + page_json_dir);
     92            }
    9093            if (_verbosity >= 2) {
    9194                System.out.print("  Pages: ");
Note: See TracChangeset for help on using the changeset viewer.