e-CryptIt Engine - Compression Xojo Plugin |

# ZipArchiveWriter.AddFile Method (console safe)

Low level function - Adds a file to the zip archive.

AddFile(
sourceFile as FolderItem,
directoryPath as String,
comment as String,
compressionMethod as CompressionMethodEnum,
progress as ZipArchive.ProgressDelegate)

#### Parameters

sourceFile
  The file to be added.
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