e-CryptIt Engine - Compression Xojo Plugin |
|
ZipArchiveReader.ExtractFromEntryIndex Method
Extracts file or directory from a given index in the ZipArchive

ExtractFromEntryIndex(
index
as UInt32,
destination
as FolderItem)
Parameters
- index
- The index of the entry in the zip archive. First entry is number zero.
- destination
- The destination where to extract to.
Remarks
The LastError property can give hint on success or what error was generated.
ExtractFromEntryIndex is a high level method that just uses internally the lower level functions of this plugin. If wanting to customise the ExtractFromEntryIndex then our implementation for ExtractFromEntryIndex is equal to this code here:
Sub ExtractFromEntryIndex(zip as EinhugurZipArchives.ZipArchiveReader, index as UInt32,destination as FolderItem)
if zip.EntryIsDirectory(index) then
zip.ExtractDirectoryFromEntryIndex(index,destination)
else
zip.ExtractFileFromEntryIndex(index,destination)
end if
End Sub
(ExtractDirectoryFromEntryIndex and ExtractFileFromEntryIndex are also high level functions, see the documentation for the ExtractDirectoryFromEntryIndex and ExtractFileFromEntryIndex functions to see how to customise those)
See Also
ZipArchiveReader Class