ZipAddDir
| Definition: |
include builtins\LiteZip.e
object res = ZipAddDir(atom hzip, string destname, integer offset=0) |
| Description: |
Adds a directory to a zip archive, and all the files and subdirectories it contains.
hzip: the result of a successful call to ZipCreateFile(). destname: the directory path to be included. offset: the part of destname that should be omitted from the zip. For example, ZipAddDir(hzip,`test\LiteZip`,5) loads from `test\LiteZip` and stores the files in the zip in a "LiteZip" subdir, in other words omitting destname[1..5]. Fairly obviously, if you do not want absolutely everything to be included, then you must resort to adding things one at a time, via ZipAddFile() and possibly ZipAddFolder(). Returns ZR_OK (=0) or a string error message. |
| pwa/p2js: | Not supported |
| Example: |
include builtins\LiteZip.e
atom hzip = ZipCreateFile("test.zip")
object res = ZipAddDir(hzip,`test\LiteZip`,5)
ZipClose(hzip)
|
| See Also: | ZipCreateFile, ZipClose |