Manpages - zip_dir_add.3

libzip (-lzip)

The function

adds a directory to a zip archive. The argument

specifies the zip archive to which the directory should be added.

is the directory’s name in the zip archive.

This function adds an entry to the archive. It does not check whether a directory with that name exists in the file system, nor does it add its contents if it does. The

argument can be any of:

Guess encoding of

(default). (Only CP-437 and UTF-8 are recognized.)

Interpret

as UTF-8.

Interpret

as code page 437 (CP-437).

Upon successful completion, the index of the new entry in the archive is returned. Otherwise, -1 is returned and the error code in

is set to indicate the error.

fails if:

There is already an entry called

in the archive.

or

are

or invalid UTF-8 encoded file names.

Required memory could not be allocated.

was added in libzip 0.11.

and

Author: dt

Created: 2022-02-20 Sun 19:00