Compress file with XAD or ZIP

Discuss about plugins that don't have a dedicated forum
Post Reply
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Compress file with XAD or ZIP

Post 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
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Compress file with XAD or ZIP

Post by SamuraiCrow »

Try looking up zip.AddFile() for the Zip plugin. XAD may have something similar.
I'm on registered MorphOS using FlowStudio.
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Compress file with XAD or ZIP

Post by jPV »

XAD is for unarchiving only, you can't compress with it.
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Compress file with XAD or ZIP

Post by sinisrus »

Thank you

zip.addfile not have option => "Progress" only zip.ExtractFile :-/
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Compress file with XAD or ZIP

Post 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.
sinisrus
Posts: 347
Joined: Tue Apr 21, 2015 5:43 pm

Re: Compress file with XAD or ZIP

Post by sinisrus »

Perfect !

Thank you
Post Reply