tiny-zip icon indicating copy to clipboard operation
tiny-zip copied to clipboard

Empty Zip File is Written

Open FlailingElbows opened this issue 5 years ago • 1 comments

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.

FlailingElbows avatar Oct 28 '20 21:10 FlailingElbows

Hi,

could you provide a detailed test case for this issue? PS: pull request are welcome!!

bitstorm avatar Dec 01 '20 20:12 bitstorm