# Zip length operator

The length operator # applied on a Zip object returns the total number of entries that the Zip archive contains. The Zip.count property returns the same value.

Example

local compression = require "compression" -- check parameters : the archive specified as argument local archive = arg[1] or error("no archive specified") -- open the archive local z = compression.Zip(archive) -- #z is equivalent to z.count print(archive.." has a total of "..#z.." entries")