Name
zip.AddDirectory -- add directory to zip archive
Synopsis
idx = zip.AddDirectory(id, d$[, t])
Function
This functions creates a new directory named d$ in the zip archive and returns its index. The directory will be empty and you can add files to it using the zip.AddFile() function.

The following tags are currently recognized by the optional table argument:

Encoding:
This tag can be used to set the charset encoding that should be used when storing the directory name. This can be one of the following special constants:

#ZIP_FL_ENC_UTF_8:
Use UTF-8 encoding. This is the default.

#ZIP_FL_ENC_CP437:
Use code page 437 encoding. Since this was the standard encoding on MS-DOS it was also the standard encoding of the original zip format. So if you need maximum compatibility, you can use this encoding but remember that it can only store Western characters.

(V1.2)

Inputs
id
identifier of the zip archive to use
d$
name of the directory to create in the zip archive
table
optional: table containing further options (see above) (V1.2)
Results
idx
index of newly added directory in zip archive

Show TOC