UnZip and Progress

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

UnZip and Progress

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: UnZip and Progress

Post 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.
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: UnZip and Progress

Post by xabierpayet »

is working fine, thanks
Post Reply