UnzipGetItems
| Definition: |
include builtins\LiteZip.e
object numitems = UnzipGetItems(atom hzip, ZIPENTRY ze) |
| Description: |
Obtain the number of entries in an open zip file.
hzip: the result of a successful call to UnzipOpenFile(). ze: the result of a successful call to new_ZIPENTRY(). Returns the integer count of entries or a string error message. |
| pwa/p2js: | Not supported |
| Comments: | You do not have to set anything in ze. Internally, it sets the Index field to -1 and retrieves that field after invoking UnzipGetItem(). |
| Example: |
include builtins\LiteZip.e
atom hzip = UnzipOpenFile("phix.0.7.7.2.zip")
ZIPENTRY ze = new_ZIPENTRY()
integer numitems = UnzipGetItems(hzip,ze)
?{"numitems",numitems} -- prints {"numitems",1156}
UnzipClose(hzip)
|
| See Also: | UnzipOpenFile, ZIPENTRY, UnzipClose |