Skip to content

PKZip.ZipReader.RepairZip

Andrew Lambert edited this page Nov 26, 2022 · 6 revisions

PKZip.ZipReader.RepairZip

Method Signature

 Protected Shared Function RepairZip(ZipFile As FolderItem, RecoveryFile As FolderItem, Optional LogFile As FolderItem) As Boolean

Parameters

Name Type Comment
ZipFile FolderItem The zip archive to repair.
RecoveryFile FolderItem A file or directory to save recovered files in.
LogFile FolderItem Optional. A file to write a recovery log to.

Return value

Returns True if the operation was successful.

Remarks

This method extracts the ZipFile using less-efficient and/or more resilient and forgiving techniques. If the RecoveryFile is a directory then the archive is extracted to that directory. Otherwise the archive is extracted to a temporary folder and then re-zipped into a new archive.

Entry-level points of interest denoted by "☜"



Clone this wiki locally