Page 1 of 1

Compress file with XAD or ZIP

Posted: Tue Jun 05, 2018 4:19 pm
by sinisrus
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

Re: Compress file with XAD or ZIP

Posted: Tue Jun 05, 2018 8:31 pm
by SamuraiCrow
Try looking up zip.AddFile() for the Zip plugin. XAD may have something similar.

Re: Compress file with XAD or ZIP

Posted: Tue Jun 05, 2018 9:48 pm
by jPV
XAD is for unarchiving only, you can't compress with it.

Re: Compress file with XAD or ZIP

Posted: Wed Jun 06, 2018 1:30 am
by sinisrus
Thank you

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

Re: Compress file with XAD or ZIP

Posted: Wed Jun 06, 2018 5:44 pm
by airsoftsoftwair
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.

Re: Compress file with XAD or ZIP

Posted: Thu Jun 07, 2018 8:22 am
by sinisrus
Perfect !

Thank you