CheckZip Method (zipFileName)

DotNetZip

Ionic Zip Library v1.9.1.6 CheckZip Method (zipFileName)
ReferenceIonic.ZipZipFileCheckZip(String)
Checks a zip file to see if its directory is consistent.
Declaration Syntax
C# Visual Basic Visual C++
public static bool CheckZip(
	string zipFileName
)
Public Shared Function CheckZip ( _
	zipFileName As String _
) As Boolean
public:
static bool CheckZip(
	String^ zipFileName
)
Parameters
zipFileName (String)
The filename to of the zip file to check.
Return Value
true if the named zip file checks OK. Otherwise, false.
Remarks

In cases of data error, the directory within a zip file can get out of synch with the entries in the zip file. This method checks the given zip file and returns true if this has occurred.

This method may take a long time to run for large zip files.

This method is not supported in the Reduced or Compact Framework versions of DotNetZip.

Developers using COM can use the ComHelper.CheckZip(String) method.

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