e-CryptIt Engine - Compression Xojo Plugin

ZipArchiveWriter.AddFileContent Method

Adds a file contents to the zip archive, taking in parameter to give the file name inside the zip archive. This variation of the AddFileContent will add the file at the root in the Zip archive.

AddFileContent(
   sourceFile as FolderItem,
   destinationName 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.
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