brendan-duncan / archive

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

the autoClose parameter of zip_endcode::addFile is not used #317

Closed cocti-zhonghao closed 8 months ago

cocti-zhonghao commented 8 months ago

in addFile(ArchiveFile file, {bool autoClose = true}) method, the ArchiveFile file will be closed unconditionally。I thought that if autoClose is false,the ArchiveFile file would not be closed,but it is not that。