Manpages - zip_file_rename.3

libzip (-lzip)

The file at position

in the zip archive

is renamed to

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 0 is returned. Otherwise, -1 is returned and the error code in

is set to indicate the error.

fails if:

The file to be renamed has been deleted from the archive.

There is already a file called

in the archive.

is not a valid file index in

the empty string, or not a valid UTF-8 encoded string. Also a file cannot be renamed to a directory or vice versa. Directories are denoted by a trailing slash.

was added in libzip 0.11.

and

Author: dt

Created: 2022-02-21 Mon 11:10