Ignore:
Timestamp:
2009-04-23T13:55:26+12:00 (15 years ago)
Author:
ak19
Message:

Correction for allowing the metadata directories of collections nested in collectiongroups to get zipped up. Ziptools now handles empty directories with a dummy file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/remote/ZipCollectionConfigurations.java

    r19207 r19221  
    7171            // The "metadata" directory may not exist (non-GLI collections)
    7272            String metadata_relative_path = relative_path + collection_directories[i].getName() + File.separator + "metadata";
    73             File metadata_directory = new File(collect_directory.getAbsolutePath() + File.separator + metadata_relative_path);
     73            File metadata_directory = new File(toplevel_path + File.separator + metadata_relative_path);
    7474            if (metadata_directory.exists()) {
    7575            ZipTools.addFileToZip(zos, toplevel_path, metadata_relative_path, collection_metadata_zip_filter);
Note: See TracChangeset for help on using the changeset viewer.