C
Covington Bradshaw
Hi,
How do I add an empty dir to a Zip file programmatically
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
....
try {
ZipEntry dirEntry = new ZipEntry(dirFile.getPath());
zipOutputStream.putNextEntry(dirEntry);
}
catch (IOException e) {}
The dir is added as an empty file
Please help
How do I add an empty dir to a Zip file programmatically
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
....
try {
ZipEntry dirEntry = new ZipEntry(dirFile.getPath());
zipOutputStream.putNextEntry(dirEntry);
}
catch (IOException e) {}
The dir is added as an empty file
Please help