UpdateDirectory Method (directoryName)

DotNetZip

Ionic Zip Library v1.9.1.6 UpdateDirectory Method (directoryName)
ReferenceIonic.ZipZipFileUpdateDirectory(String)
Add or update a directory in a zip archive.
Declaration Syntax
C# Visual Basic Visual C++
public ZipEntry UpdateDirectory(
	string directoryName
)
Public Function UpdateDirectory ( _
	directoryName As String _
) As ZipEntry
public:
ZipEntry^ UpdateDirectory(
	String^ directoryName
)
Parameters
directoryName (String)
The path to the directory to be added to the zip archive, or updated in the zip archive.
Return Value
The ZipEntry corresponding to the Directory that was added or updated.
Remarks
If the specified directory does not exist in the archive, then this method is equivalent to calling AddDirectory(). If the specified directory already exists in the archive, then this method updates any existing entries, and adds any new entries. Any entries that are in the zip archive but not in the specified directory, are left alone. In other words, the contents of the zip file will be a union of the previous contents and the new files.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)