Page 1 of 1

UnZip and Progress

Posted: Sat Oct 06, 2018 12:59 am
by xabierpayet
Can you explain to me how to get the progress of an unzipped archive? i don´t understand how it´s explained in the guide, why the work way of this command is different to the copy command?
Regards

Re: UnZip and Progress

Posted: Sat Oct 06, 2018 10:42 pm
by airsoftsoftwair
Well, if you want to unpack a whole archive, you don't even need the progress callback of zip.ExtractFile() - unless you are a perfectionist. For most needs, it's enough to just query #ATTRNUMENTRIES in the zip and take those as your 100%. For every entry in the zip archive you can then easily calculate how many files have already been unpacked in percent.

Re: UnZip and Progress

Posted: Wed Oct 10, 2018 11:46 pm
by xabierpayet
is working fine, thanks