UnzipGetItem
| Definition: |
include builtins\LiteZip.e
object res = UnzipGetItem(atom hzip, ZIPENTRY ze, integer idx) |
| Description: |
Associates the ze structure with the idx’th entry, ready for further processing.
hzip: the result of a successful call to UnzipOpenFile(). ze: the result of a successful call to new_ZIPENTRY(). idx: a 0-based index, from 0 to the result of UnzipGetItems()-1. Returns ZR_OK (=0) or a string error message. |
| pwa/p2js: | Not supported |
| Comments: | The UnzipGetItems() routine invokes UnZipGetItem() with an idx of -1, and retrieves the Index field from the ze when it returns. |
| Example: |
include builtins\LiteZip.e
atom hzip = UnzipOpenFile("phix.0.7.7.2.zip")
ZIPENTRY ze = new_ZIPENTRY()
integer numitems = UnzipGetItems(hzip,ze)
UnzipSetBaseDir(hzip,current_dir()&`\test`)
for i=1 to numitems do
integer res = UnzipGetItem(hzip, ze, i-1)
res = UnzipItemToFile(hzip, ze)
end for
UnzipClose(hzip)
|
| See Also: | UnzipOpenFile, ZIPENTRY, UnzipGetItems, UnzipSetBaseDir, UnzipGetFileName, UnzipItemToFile, UnzipClose |