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

If it's possible to add a callback function so that can be show now extracting file in progress #327

Open Muska-Ami opened 4 months ago

Muska-Ami commented 4 months ago

Like the title, we need a callback function when extracting files to disk:

extractFileToDisk(File file, Directory dir, Function callback);
allenbrunson commented 2 months ago

i am going to second this! i would like to see convenience functions for both extraction and archive creation that would provide callbacks, so we can show progress to the end user.

brendan-duncan commented 2 months ago

I added that callback to the 4.0 branch I've been working on. https://github.com/brendan-duncan/archive/tree/4.0. Hopefully it will be ready soon.