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

ZipArchive.AddDirectory Method

Name Parameters Description
AddDirectory(String) path Recursively add files and directories to the archive directory named by the last component of the specified path.
AddDirectory(String, String) path, archivePath Recursively add files and directories to the archive.