Changeset 19221 for gli/trunk/src/org
- Timestamp:
- 2009-04-23T13:55:26+12:00 (15 years ago)
- Location:
- gli/trunk/src/org/greenstone/gatherer/remote
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/remote/ZipCollectionConfigurations.java
r19207 r19221 71 71 // The "metadata" directory may not exist (non-GLI collections) 72 72 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); 74 74 if (metadata_directory.exists()) { 75 75 ZipTools.addFileToZip(zos, toplevel_path, metadata_relative_path, collection_metadata_zip_filter); -
gli/trunk/src/org/greenstone/gatherer/remote/ZipTools.java
r13406 r19221 76 76 addFileToZip(zos, base_directory_path, relative_file_path + File.separator + child_files[i].getName(), zip_filter); 77 77 } 78 79 // empty directory. Java zips don't allow empty dirs, so need to put some dummy file in there 80 if(child_files.length == 0) { 81 String rel_path = relative_file_path.replace('\\', '/') + File.separator + "empty"; 82 System.err.println("Zipping empty dir requires dummy file: " + rel_path); 83 zos.putNextEntry(new ZipEntry(rel_path)); 84 } 78 85 } 79 86
Note:
See TracChangeset
for help on using the changeset viewer.