Skip to main content

The "xzip_exists" Function

Syntax#

xzip_exists(arch, file);
ArgumentTypeDescription
archstringThe full path and filename of the archive to check
filestring/integerThe name or index of a file to check

Description#

Checks if a file or folder exists in the given archive and returns true or false.

Note that this script does not check the archive itself! For that, use the built-in file_exists function.

Example#

if (!xzip_exists("C:\\archive.xz", "file4.jpg")) {
xzip_add("C:\\archive.xz", "file4.jpg");
}