brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
395 stars 130 forks source link

fix: Add autoClose check on ZipEncoder.addFile() #316

Closed felipheallef closed 6 months ago

felipheallef commented 6 months ago

When calling ZipEnconder.addFile() method, the autoClose parameter is being ignored. This PR adds a check to automatically close the stream only when autoClose is set to true.

brendan-duncan commented 6 months ago

Thanks.