| ZIP_DIR_ADD(3) | Library Functions Manual | ZIP_DIR_ADD(3) | 
zip_dir_add —
#include <zip.h>
zip_int64_t
  
  zip_dir_add(zip_t
    *archive, const char
    *name, zip_flags_t
    flags);
zip_dir_add() adds a directory to a zip
  archive. The argument archive specifies the zip archive
  to which the directory should be added. name 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 flags argument can be any of:
ZIP_FL_ENC_GUESSZIP_FL_ENC_UTF_8ZIP_FL_ENC_CP437zip_dir_add() fails if:
ZIP_ER_EXISTS]ZIP_ER_INVAL]NULL, or invalid UTF-8 encoded file names.ZIP_ER_MEMORY]zip_dir_add() was added in libzip 0.11.
| April 25, 2020 | NiH |