SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from PCLinuxOS lib64zip-devel-1.3.0-1pclos2017.x86_64.rpm

ZIP_DIR_ADD

Section: Library Functions Manual (3)
Updated: December 4, 2014
Index 

NAME

zip_dir_add- add directory to zip archive 

LIBRARY

libzip (-lzip) 

SYNOPSIS

#include <zip.h>

zip_int64_t

zip_dir_add(zip_t *archive, const char *name, zip_flags_t flags);
 

DESCRIPTION

The functionzip_dir_add()adds a directory to a zip archive.The argumentarchivespecifies the zip archive to which the directory should be added.nameis the directory's name in the zip archive.Theflagsargument can be any of:
ZIP_FL_ENC_GUESS
Guess encoding ofname(default).
ZIP_FL_ENC_UTF_8
Interpretnameas UTF-8.
ZIP_FL_ENC_CP437
Interpretnameas code page 437 (CP-437).
 

RETURN VALUES

Upon successful completion, the index of the new entry in the archiveis returned.Otherwise, -1 is returned and the error code inarchiveis set to indicate the error. 

ERRORS

zip_dir_add()fails if:
[ZIP_ER_EXISTS]
There is already an entry callednamein the archive.
[ZIP_ER_INVAL]
archiveornameareNULL,or invalid UTF-8 encoded file names.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
 

SEE ALSO

libzip(3),zip_add(3) 

AUTHORS

Dieter Baron <dilloAATTnih.at>andThomas Klausner <tkAATTgiga.or.at> 

CAVEATS

zip_dir_add()does not look in the file system, it just creates one entry in thearchive for the provided name.


 

Index

NAME
LIBRARY
SYNOPSIS
DESCRIPTION
RETURN VALUES
ERRORS
SEE ALSO
AUTHORS
CAVEATS

This document was created byman2html,using the manual pages.