Consider a zip archive containing the following folder and files:
rootfolder
+ file1.doc
+ file2.pdf
Shouldnt the "entries" enum bellow contain an entry for the root folder?
ZipFile zipFile = new ZipFile(tmpZipFile);
Enumeration entries = zipFile.getEntries();
while (entries.hasMoreElements()){
if (entry.isDirectory()){
// this should be executed once right?
LOG.info("found folder!")
}
else{
LOG.info("found file!")
}
}
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]