IZipArchive.AddDirectory

Syntax

AddDirectory(DirectoryPath: String; [ArchPath: String = ""]): IZipArchiveEntry;

Parameters

DirectoryPath. Path to the hard drive folder that must be added to archive.

ArchPath. Path to the archive folder, to which the DirectoryPath folder will be added.

Description

The AddDirectory method adds the specified folder to archive with all contents.

Comments

The ArchPath parameter is not specified by default, the DirectoryPath folder is added to the archive root.

Example

The example of use is given in description of the ZipArchive.Create constructor.

See also:

IZipArchive