-
-
Notifications
You must be signed in to change notification settings - Fork 3
PKZip.ReadZip
PKZip.ReadZip
Protected Function ReadZip(ZipFile As FolderItem, ExtractTo As FolderItem, Overwrite As Boolean = False, VerifyCRC As Boolean = True) As FolderItem()
Name | Type | Comment |
---|---|---|
ZipFile | FolderItem | The archive file to read. |
ExtractTo | FolderItem | The directory to extract into. |
Overwrite | Boolean | Optional. If True , existing local files will be overwritten. |
VerifyCRC | Boolean | Optional. If True , the CRC32 checksum of each file will be verified. |
An array of zero or more FolderItems corresponding to the extracted files & directories.
This method extracts the specified zip archive into the output directory. The directory structure of the archive is preserved and missing subdirectories of the target directory will be created automatically.
The zip archive format does not forbid having two or more entries with identical names. If Overwrite
is False
(the default), then an IOException will be raised when a duplicate entry is encountered. If Overwrite
is True
then no exception is raised and each subsequent duplicate overwrites the previous one. To correctly process an archive with duplicate entries use the ZipReader class.
Dim src As FolderItem = GetOpenFolderItem("") ' a zip archive file
Dim dst As FolderItem = SelectFolder() ' the folder to extract into
Dim list() As FolderItem = PKZip.ReadZip(src, dst)
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.