Directory()
|
Previous Top Next |
:Directory()
|
None.
|
This method returns a copy of the :aFStruct instance Variable, which is a Directory Array that contains all Central Directory Record objects of the currently open Zip File.
|
Retrieves a copy of (and if necessary updates) the Array of Central Directory Record objects of the Zip File that are internally stored in the (protected) :aFStruct instance Variable. The returned Array contains a reference to all current ZipCentralDirectoryRecord objects.
|
|
Those ZipCentralDirectoryRecord objects should NEVER be directly modified, as this could very easily lead to Zip File corruptions! Always use the appropriate XbZLibZip() methods to manipulate or modify ZipCentralDirectoryRecord objects!
|
Open an existing Zip File named "MyArchive.zip" in Read-Only mode and read its directory into an array. Then list the File Name of all (File) Entries of the Zip File, and close it:
|
oZip := XbZLibZip():New('MyArchive.zip', XBZ_OPEN_READ)
|
AEval(oZip:Directory(), {|oCDRec| QOut(oCDRec:FileName)})
|
oZip:Close()
|