ZIP file

A single compressed file that bundles many files and folders together, usually ending in .zip.

In more detail

The ZIP format stores each file compressed along with a directory listing the contents, and many other formats are ZIP archives underneath, including Office documents such as .docx and Java .jar files. Extract, or unzip, an archive before running anything in it: a program opened from inside a ZIP file often cannot find the files next to it. A password-protected ZIP can hide its contents from scanners that inspect data leaving the network. Python's zipfile module reads and writes these archives.

Examples

with zipfile.ZipFile(path, "w") as z:
stamp("pricing-2027.docx", "Confidential")   # a .docx is a ZIP of XML parts

Related terms

Taught in

References