UnZip and Progress

Discuss any general programming issues here
Post Reply
xabierpayet
Posts: 168
Joined: Fri Feb 24, 2012 10:34 am

UnZip and Progress

Post by xabierpayet » Sat Oct 06, 2018 12:59 am

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

User avatar
airsoftsoftwair
Posts: 2628
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: UnZip and Progress

Post by airsoftsoftwair » Sat Oct 06, 2018 10:42 pm

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.

xabierpayet
Posts: 168
Joined: Fri Feb 24, 2012 10:34 am

Re: UnZip and Progress

Post by xabierpayet » Wed Oct 10, 2018 11:46 pm

is working fine, thanks

Post Reply