Compress file with XAD or ZIP

Find quick help here to get you started with Hollywood
Post Reply
sinisrus
Posts: 217
Joined: Tue Apr 21, 2015 5:43 pm

Compress file with XAD or ZIP

Post by sinisrus » Tue Jun 05, 2018 4:19 pm

Hello,

Is it possible to compress file with XAD or ZIP and have progress 0% at 100% ?

in the documentation it's possible for extract but I do not see anything for compression

I would have preferred to do with function => CompressFile() and DecompressFile()

Thank you

SamuraiCrow
Posts: 130
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Compress file with XAD or ZIP

Post by SamuraiCrow » Tue Jun 05, 2018 8:31 pm

Try looking up zip.AddFile() for the Zip plugin. XAD may have something similar.

User avatar
jPV
Posts: 132
Joined: Sat Mar 26, 2016 11:44 am
Location: RNO
Contact:

Re: Compress file with XAD or ZIP

Post by jPV » Tue Jun 05, 2018 9:48 pm

XAD is for unarchiving only, you can't compress with it.

sinisrus
Posts: 217
Joined: Tue Apr 21, 2015 5:43 pm

Re: Compress file with XAD or ZIP

Post by sinisrus » Wed Jun 06, 2018 1:30 am

Thank you

zip.addfile not have option => "Progress" only zip.ExtractFile :-/

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

Re: Compress file with XAD or ZIP

Post by airsoftsoftwair » Wed Jun 06, 2018 5:44 pm

zip.AddFile() won't do anything except adding the file to an internal list. Compression is done by zip.CloseArchive() and this function also allows you to monitor progress.

sinisrus
Posts: 217
Joined: Tue Apr 21, 2015 5:43 pm

Re: Compress file with XAD or ZIP

Post by sinisrus » Thu Jun 07, 2018 8:22 am

Perfect !

Thank you

Post Reply