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.v24.1.dll
NuGet Package: DevExpress.Document.Processor
Declaration
Parameters
Name | Type | Description |
---|---|---|
path | String | A string that is the path to a directory which will be recursively included in the archive. |
Returns
Type | Description |
---|---|
ZipDirectoryItem | A ZipDirectoryItem that is the zip item container for the directory. Currently, the method always returns null. |
Remarks
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddDirectory(String) method.
Note
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.