zip.SetFileComment(id[, c$, idx])
id
or for the whole zip archive. If the optional parameter idx
is specified, the
comment specified by c$
is set for the file at that index. If the optional parameter idx
is omitted or set to -1, the comment specified by c$
is set for the whole zip archive.
You can also remove the comment of a file or the whole archive by omitting the c$
argument or setting it to an empty string.
Note that the change to the zip archive isn't done immediately but is postponed until you call zip.CloseArchive().
This function can also operate on directories. See Zip archive basics for details.