A zip file stores the losslessly compressed data of one or more files, including their directory (path) information.
Info-ZIP
Info-ZIP is an implementation of the zip file format that adds support for
When extracting an info-zip file, that was created on Unix, on Windows, or vice versa, an attempt is made to translate NTFS permissions from/to Unix permissions. Apparently, this might lead to issues.
Magic number
A zip file (and some other formats that are based on it) has as its first two bytes the letters PK (hex: 50
and 4B
) followed by 0304
, 0506
or 0708
.
PK stands for the initials of the creator of the zip file format: Phil Katz.
See also
Python:
shutil.unpack_archive
is able to extract the content of a zip file (if it is not using compression type 9 (Deflate64/Enhanced Deflate)).
The built-in function
zip
has nothing to do with zip files!
There are quite a number of file types that are stored in zip files, such as
.dacpac
,
.jar
,
.nupkg
,
.xpi
and all
Office files whose extensions match
.*x
(for example
.docx
) and
*m
(for example
.xlsm
).
The Oracle PL/SQL package
zipper