UnzipGetFileName
| Definition: |
include builtins\LiteZip.e
string filename = UnzipGetFileName(ZIPENTRY ze) |
| Description: |
Retrieves the filename from a ze structure.
ze: the recent subject of a successful UnzipGetItem() or UnzipFindItem() call. No errors originate from this routine (it is in fact a simple peek_string() call) however of course the behaviour is undefined if either of the above routines returned an error or, indeed, if neither of them has been invoked on this ze. |
| pwa/p2js: | Not supported |
| Example: |
include builtins\LiteZip.e
atom hzip = UnzipOpenFile("phix.0.7.7.1.zip")
UnzipSetBaseDir(hzip,current_dir()&`\test`)
ZIPENTRY ze = new_ZIPENTRY()
?UnzipFindItem(hzip,ze,"readme.txt") -- prints 0 (ZR_OK)
?UnzipGetFileName(ze) -- prints current_dir()&`\test\readme.txt`
UnzipClose(hzip)
|
| See Also: | UnzipOpenFile, ZIPENTRY, UnzipSetBaseDir, UnzipFindItem, UnzipClose |