e-CryptIt Engine - Compression Xojo Plugin |

# ZipArchiveWriter.AddItem Method (console safe)

Adds a file or a directory to the Zip archive. This variation has a parameter to choose if you want to add recursively or not.

AddItem(
item as FolderItem,
compressionMethod as CompressionMethodEnum,
recursive as Boolean,
progress as ZipArchive.ProgressDelegate)

#### Parameters

item
  The file or directory to be added.
compressionMethod
  Compression method. This can be any one of the constant from the CompressionMethodEnum on this class.
recursive
  True if you want to add recursively, else false.
progress
  Optional parameter that takes progress delegate. Default value is nil.

#### Remarks

#### See Also

ZipArchiveWriter Class