Skip to main content

ZipArchive.AddDirectory(String) Method

Recursively add files and directories to the archive directory named by the last component of the specified path.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v23.2.dll

NuGet Package: DevExpress.Document.Processor


public ZipDirectoryItem AddDirectory(
    string path


Name Type Description
path String

A string that is the path to a directory which will be recursively included in the archive.


Type Description

A ZipDirectoryItem that is the zip item container for the directory. Currently, the method always returns null.


The AddDirectory recursively collects all files and folders starting from the folder specified by the path parameter. The tree of directories and files is added to the archive directory named by the last component of a specified path.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddDirectory(String) method.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also