e-CryptIt Engine - Compression Xojo Plugin |
|
ZipArchiveWriter.AddFileContent Method
Low level function - Adds a file contents to the zip archive, taking in parameter to give the file name inside the zip archive.

AddFileContent(
sourceFile
as FolderItem,
destinationName
as String,
directoryPath
as String,
comment
as String,
compressionMethod
as CompressionMethodEnum,
progress
as ZipArchive.ProgressDelegate)
Parameters
- sourceFile
- The file contents to be added.
- destinationName
- Name of the file as it should be named in the Zip archive.
- directoryPath
- Full zip archive directory path. For a file this would be like: MyFolder/My SubFolder/MyFile.txt
- comment
- Comment for the entry.
- compressionMethod
- Compression method. This can be any one of the constant from the CompressionMethodEnum on this class.
- progress
- Optional parameter that takes progress delegate. Default value is nil.
Remarks
See Also
ZipArchiveWriter Class