Issue 12599

dwca lib does not preserve folder structure in uncompressed folder

12599
Reporter: mdoering
Type: Bug
Summary: dwca lib does not preserve folder structure in uncompressed folder
Description: When processing the col archive with constituents metadata in a dataset subfolder, that folder does not exist in the uncompressed version but all files are put into the upper main folder
Priority: Major
Resolution: Invalid
Status: Closed
Created: 2013-01-16 14:02:31.33
Updated: 2013-12-06 12:06:31.722
Resolved: 2013-01-16 15:11:13.303


Author: kbraak@gbif.org
Comment: Please see recently added method decompressFile(File directory, File compressedFile, boolean keepSubdirectories) that uses unzipFile(File directory, File zipFile, boolean keepSubdirectories) Added in http://code.google.com/p/gbif-common-resources/source/detail?spec=svn1059&r=1059 The IPT makes use of this. 
Created: 2013-01-16 14:27:32.892
Updated: 2013-01-16 14:27:32.892


Author: mdoering@gbif.org
Comment: Excellent! [~lfrancke@gbif.org] We just need to make sure the new crawling also uses this.
Created: 2013-01-16 15:10:44.171
Updated: 2013-01-16 15:10:59.599


Author: lfrancke@gbif.org
Comment: Okay. I don't fully understand the problem is it a matter of just changing from decompressFile(file, file) to decompressFile(file, file, true)?
Created: 2013-01-16 15:14:02.868
Updated: 2013-01-16 15:14:02.868


Author: mdoering@gbif.org
Comment: I think so, yes!
Created: 2013-01-16 15:23:20.845
Updated: 2013-01-16 15:23:20.845