zip.SetFileCompression(id, idx, method[, flags])
idxin the zip archive specified by
idto the compression method specified in
method. The optional
flagsargument can be used to define the compression level, 1 being fastest compression and 9 highest. Allowed values are 1-9 or 0 to use the compressor's default setting.
method parameter must be one of the following constants:
Note that only
#ZIP_CM_STORE can be assumed to be universally supported.
Also note that the change to the zip archive isn't done immediately but is postponed until you call zip.CloseArchive().