.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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.v21.1.dll

Declaration

public ZipDirectoryItem AddDirectory(
    string path
)

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.

See Also