FixZipDirectory Method (zipFileName)

DotNetZip

Ionic Zip Library v1.9.1.6 FixZipDirectory Method (zipFileName)
ReferenceIonic.ZipZipFileFixZipDirectory(String)
Rewrite the directory within a zipfile.
Declaration Syntax
C# Visual Basic Visual C++
public static void FixZipDirectory(
	string zipFileName
)
Public Shared Sub FixZipDirectory ( _
	zipFileName As String _
)
public:
static void FixZipDirectory(
	String^ zipFileName
)
Parameters
zipFileName (String)
The filename to of the zip file to fix.
Remarks

In cases of data error, the directory in a zip file can get out of synch with the entries in the zip file. This method attempts to fix the zip file if this has occurred.

This can take a long time for large zip files.

This won't work if the zip file uses a non-standard code page - neither IBM437 nor UTF-8.

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

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

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