tiny-zip
tiny-zip copied to clipboard
Empty Zip File is Written
When using the constructor:
ZipParameters zp = new ZipParameters(false, (percent, currentFile) -> { System.out.println(String.format("%f, done %s.", percent, currentFile)); });
and then calling
TinyZip.zip(zipDestPath, zp, srcFilePath);
The resulting zip file is empty. But if I use the constructor that only takes a BiConsumer, e.x:
ZipParameters zp = new ZipParameters((percent, currentFile) -> { System.out.println(String.format("%f, done %s.", percent, currentFile)); });
That works just fine.
Hi,
could you provide a detailed test case for this issue? PS: pull request are welcome!!