Convenience method used to create a .zip file with the given name containing the specified file(s).
Source position: zipper.pp line 482
public class procedure TZipper.Zip( |
const AZipFileName: RawByteString; |
const aFileToBeZipped: RawByteString |
); |
const AZipFileName: RawByteString; |
aFileList: array of RawByteString |
); |
const AZipFileName: RawByteString; |
aFileList: TStrings |
); |
AZipFileName |
|
Name for the .zip file created in the method. |
aFileToBeZipped |
|
Name of the file added to the .zip file. |
AZipFileName |
|
Name for the .zip file created in the method. |
aFileList |
|
Contains file names added to the .zip file. |
AZipFileName |
|
Name for the .zip file created in the method. |
aFileList |
|
Contains file names added to the .zip file. |
Zip is a class procedure used to create a .zip file with the name specified in AZipFileName. Overloaded variants are provided that allow one or more file names to be specified using the AFileToBeZipped or AFileList arguments.
For example:
var SZip, SFile: RawByteString; SZip := '/usr/tmp/docbook5-catalog.zip'; SFile := '/usr/share/xml/docbook/schema/sch/5.0/catalog.xml' TZipper.Zip(SZip, SFile);
|
Unzips the specified .ZIP archive file. |