zip_file_rename
rename file in zip archive
- Provided by: libzip-dev (Version: 1.1.2-1.1)
- Source: libzip
- Report a bug
rename file in zip archive
libzip (-lzip)
#include <zip.h>
int
zip_file_rename(zip_t *archive, zip_uint64_t index, const char *name, zip_flags_t flags);
The file at position index in the zip archive archive is renamed to name. The flags argument can be any of:
Upon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.
zip_rename() fails if:
Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>