mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
svn+ssh://pythondev@svn.python.org/python/trunk
........
r53624 | peter.astrand | 2007-02-02 20:06:36 +0100 (Fri, 02 Feb 2007) | 1 line
We had several if statements checking the value of a fd. This is unsafe, since valid fds might be zero. We should check for not None instead.
........
r53635 | kurt.kaiser | 2007-02-05 07:03:18 +0100 (Mon, 05 Feb 2007) | 2 lines
Add 'raw' support to configHandler. Patch 1650174 Tal Einat.
........
r53641 | kurt.kaiser | 2007-02-06 00:02:16 +0100 (Tue, 06 Feb 2007) | 5 lines
1. Calltips now 'handle' tuples in the argument list (display '<tuple>' :)
Suggested solution by Christos Georgiou, Bug 791968.
2. Clean up tests, were not failing when they should have been.
4. Remove some camelcase and an unneeded try/except block.
........
r53644 | kurt.kaiser | 2007-02-06 04:21:40 +0100 (Tue, 06 Feb 2007) | 2 lines
Clean up ModifiedInterpreter.runcode() structure
........
r53646 | peter.astrand | 2007-02-06 16:37:50 +0100 (Tue, 06 Feb 2007) | 1 line
Applied patch 1124861.3.patch to solve bug #1124861: Automatically create pipes on Windows, if GetStdHandle fails. Will backport.
........
r53648 | lars.gustaebel | 2007-02-06 19:38:13 +0100 (Tue, 06 Feb 2007) | 4 lines
Patch #1652681: create nonexistent files in append mode and
allow appending to empty files.
........
r53649 | kurt.kaiser | 2007-02-06 20:09:43 +0100 (Tue, 06 Feb 2007) | 4 lines
Updated patch (CodeContext.061217.patch) to
[ 1362975 ] CodeContext - Improved text indentation
Tal Einat 16Dec06
........
r53650 | kurt.kaiser | 2007-02-06 20:21:19 +0100 (Tue, 06 Feb 2007) | 2 lines
narrow exception per [ 1540849 ] except too broad
........
r53653 | kurt.kaiser | 2007-02-07 04:39:41 +0100 (Wed, 07 Feb 2007) | 4 lines
[ 1621265 ] Auto-completion list placement
Move AC window below input line unless not enough space, then put it above.
Patch: Tal Einat
........
r53654 | kurt.kaiser | 2007-02-07 09:07:13 +0100 (Wed, 07 Feb 2007) | 2 lines
Handle AttributeError during calltip lookup
........
r53656 | raymond.hettinger | 2007-02-07 21:08:22 +0100 (Wed, 07 Feb 2007) | 3 lines
SF #1615701: make d.update(m) honor __getitem__() and keys() in dict subclasses
........
r53658 | raymond.hettinger | 2007-02-07 22:04:20 +0100 (Wed, 07 Feb 2007) | 1 line
SF: 1397711 Set docs conflated immutable and hashable
........
r53660 | raymond.hettinger | 2007-02-07 22:42:17 +0100 (Wed, 07 Feb 2007) | 1 line
Check for a common user error with defaultdict().
........
r53662 | raymond.hettinger | 2007-02-07 23:24:07 +0100 (Wed, 07 Feb 2007) | 1 line
Bug #1575169: operator.isSequenceType() now returns False for subclasses of dict.
........
r53664 | raymond.hettinger | 2007-02-08 00:49:03 +0100 (Thu, 08 Feb 2007) | 1 line
Silence compiler warning
........
r53666 | raymond.hettinger | 2007-02-08 01:07:32 +0100 (Thu, 08 Feb 2007) | 1 line
Do not let overflows in enumerate() and count() pass silently.
........
r53668 | raymond.hettinger | 2007-02-08 01:50:39 +0100 (Thu, 08 Feb 2007) | 1 line
Bypass set specific optimizations for set and frozenset subclasses.
........
r53670 | raymond.hettinger | 2007-02-08 02:42:35 +0100 (Thu, 08 Feb 2007) | 1 line
Fix docstring bug
........
r53671 | martin.v.loewis | 2007-02-08 10:13:36 +0100 (Thu, 08 Feb 2007) | 3 lines
Bug #1653736: Complain about keyword arguments to time.isoformat.
Will backport to 2.5.
........
r53679 | kurt.kaiser | 2007-02-08 23:58:18 +0100 (Thu, 08 Feb 2007) | 6 lines
Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
mouse and cursor selection in ACWindow implemented; double Tab inserts current
selection and closes ACW (similar to double-click and Return); scroll wheel now
works in ACW. Added AutoComplete instructions to IDLE Help.
........
r53689 | martin.v.loewis | 2007-02-09 13:19:32 +0100 (Fri, 09 Feb 2007) | 3 lines
Bug #1653736: Properly discard third argument to slot_nb_inplace_power.
Will backport.
........
r53691 | martin.v.loewis | 2007-02-09 13:36:48 +0100 (Fri, 09 Feb 2007) | 4 lines
Bug #1600860: Search for shared python library in LIBDIR, not
lib/python/config, on "linux" and "gnu" systems.
Will backport.
........
r53693 | martin.v.loewis | 2007-02-09 13:58:49 +0100 (Fri, 09 Feb 2007) | 2 lines
Update broken link. Will backport to 2.5.
........
r53697 | georg.brandl | 2007-02-09 19:48:41 +0100 (Fri, 09 Feb 2007) | 2 lines
Bug #1656078: typo in in profile docs.
........
r53731 | brett.cannon | 2007-02-11 06:36:00 +0100 (Sun, 11 Feb 2007) | 3 lines
Change a very minor inconsistency (that is purely cosmetic) in the AST
definition.
........
r53735 | skip.montanaro | 2007-02-11 19:24:37 +0100 (Sun, 11 Feb 2007) | 1 line
fix trace.py --ignore-dir
........
r53741 | brett.cannon | 2007-02-11 20:44:41 +0100 (Sun, 11 Feb 2007) | 3 lines
Check in changed Python-ast.c from a cosmetic change to Python.asdl (in
r53731).
........
r53751 | brett.cannon | 2007-02-12 04:51:02 +0100 (Mon, 12 Feb 2007) | 5 lines
Modify Parser/asdl_c.py so that the __version__ number for Python/Python-ast.c
is specified at the top of the file. Also add a note that Python/Python-ast.c
needs to be committed separately after a change to the AST grammar to capture
the revision number of the change (which is what __version__ is set to).
........
r53752 | lars.gustaebel | 2007-02-12 10:25:53 +0100 (Mon, 12 Feb 2007) | 3 lines
Bug #1656581: Point out that external file objects are supposed to be
at position 0.
........
r53754 | martin.v.loewis | 2007-02-12 13:21:10 +0100 (Mon, 12 Feb 2007) | 3 lines
Patch 1463026: Support default namespace in XMLGenerator.
Fixes #847665. Will backport.
........
r53757 | armin.rigo | 2007-02-12 17:23:24 +0100 (Mon, 12 Feb 2007) | 4 lines
Fix the line to what is my guess at the original author's meaning.
(The line has no effect anyway, but is present because it's
customary call the base class __init__).
........
r53763 | martin.v.loewis | 2007-02-13 09:34:45 +0100 (Tue, 13 Feb 2007) | 3 lines
Patch #685268: Consider a package's __path__ in imputil.
Will backport.
........
r53765 | martin.v.loewis | 2007-02-13 10:49:38 +0100 (Tue, 13 Feb 2007) | 2 lines
Patch #698833: Support file decryption in zipfile.
........
r53766 | martin.v.loewis | 2007-02-13 11:10:39 +0100 (Tue, 13 Feb 2007) | 3 lines
Patch #1517891: Make 'a' create the file if it doesn't exist.
Fixes #1514451.
........
r53767 | martin.v.loewis | 2007-02-13 13:08:24 +0100 (Tue, 13 Feb 2007) | 3 lines
Bug #1658794: Remove extraneous 'this'.
Will backport to 2.5.
........
r53769 | martin.v.loewis | 2007-02-13 13:14:19 +0100 (Tue, 13 Feb 2007) | 3 lines
Patch #1657276: Make NETLINK_DNRTMSG conditional.
Will backport.
........
r53771 | lars.gustaebel | 2007-02-13 17:09:24 +0100 (Tue, 13 Feb 2007) | 4 lines
Patch #1647484: Renamed GzipFile's filename attribute to name. The
filename attribute is still accessible as a property that emits a
DeprecationWarning.
........
r53772 | lars.gustaebel | 2007-02-13 17:24:00 +0100 (Tue, 13 Feb 2007) | 3 lines
Strip the '.gz' extension from the filename that is written to the
gzip header.
........
r53774 | martin.v.loewis | 2007-02-14 11:07:37 +0100 (Wed, 14 Feb 2007) | 2 lines
Patch #1432399: Add HCI sockets.
........
r53775 | martin.v.loewis | 2007-02-14 12:30:07 +0100 (Wed, 14 Feb 2007) | 2 lines
Update 1432399 to removal of _BT_SOCKADDR_MEMB.
........
r53776 | martin.v.loewis | 2007-02-14 12:30:56 +0100 (Wed, 14 Feb 2007) | 3 lines
Ignore directory time stamps when considering
whether to rerun libffi configure.
........
r53778 | lars.gustaebel | 2007-02-14 15:45:12 +0100 (Wed, 14 Feb 2007) | 4 lines
A missing binary mode in AppendTest caused failures in Windows
Buildbot.
........
r53782 | martin.v.loewis | 2007-02-15 10:51:35 +0100 (Thu, 15 Feb 2007) | 2 lines
Patch #1397848: add the reasoning behind no-resize-on-shrinkage.
........
r53783 | georg.brandl | 2007-02-15 11:37:59 +0100 (Thu, 15 Feb 2007) | 2 lines
Make functools.wraps() docs a bit clearer.
........
r53785 | georg.brandl | 2007-02-15 12:29:04 +0100 (Thu, 15 Feb 2007) | 2 lines
Patch #1494140: Add documentation for the new struct.Struct object.
........
r53787 | georg.brandl | 2007-02-15 12:29:55 +0100 (Thu, 15 Feb 2007) | 2 lines
Add missing \versionadded.
........
r53800 | brett.cannon | 2007-02-15 23:54:39 +0100 (Thu, 15 Feb 2007) | 11 lines
Update the encoding package's search function to use absolute imports when
calling __import__. This helps make the expected search locations for encoding
modules be more explicit.
One could use an explicit value for __path__ when making the call to __import__
to force the exact location searched for encodings. This would give the most
strict search path possible if one is worried about malicious code being
imported. The unfortunate side-effect of that is that if __path__ was modified
on 'encodings' on purpose in a safe way it would not be picked up in future
__import__ calls.
........
r53801 | brett.cannon | 2007-02-16 20:33:01 +0100 (Fri, 16 Feb 2007) | 2 lines
Make the __import__ call in encodings.__init__ absolute with a level 0 call.
........
r53809 | vinay.sajip | 2007-02-16 23:36:24 +0100 (Fri, 16 Feb 2007) | 1 line
Minor fix for currentframe (SF #1652788).
........
r53818 | raymond.hettinger | 2007-02-19 03:03:19 +0100 (Mon, 19 Feb 2007) | 3 lines
Extend work on revision 52962: Eliminate redundant calls to PyObject_Hash().
........
r53820 | raymond.hettinger | 2007-02-19 05:08:43 +0100 (Mon, 19 Feb 2007) | 1 line
Add merge() function to heapq.
........
r53821 | raymond.hettinger | 2007-02-19 06:28:28 +0100 (Mon, 19 Feb 2007) | 1 line
Add tie-breaker count to preserve sort stability.
........
r53822 | raymond.hettinger | 2007-02-19 07:59:32 +0100 (Mon, 19 Feb 2007) | 1 line
Use C heapreplace() instead of slower _siftup() in pure python.
........
r53823 | raymond.hettinger | 2007-02-19 08:30:21 +0100 (Mon, 19 Feb 2007) | 1 line
Add test for merge stability
........
r53824 | raymond.hettinger | 2007-02-19 10:14:10 +0100 (Mon, 19 Feb 2007) | 1 line
Provide an example of defaultdict with non-zero constant factory function.
........
r53825 | lars.gustaebel | 2007-02-19 10:54:47 +0100 (Mon, 19 Feb 2007) | 2 lines
Moved misplaced news item.
........
r53826 | martin.v.loewis | 2007-02-19 11:55:19 +0100 (Mon, 19 Feb 2007) | 3 lines
Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()
functions on platforms where the underlying system calls are available.
........
r53827 | raymond.hettinger | 2007-02-19 19:15:04 +0100 (Mon, 19 Feb 2007) | 1 line
Fixup docstrings for merge().
........
r53829 | raymond.hettinger | 2007-02-19 21:44:04 +0100 (Mon, 19 Feb 2007) | 1 line
Fixup set/dict interoperability.
........
r53837 | raymond.hettinger | 2007-02-21 06:20:38 +0100 (Wed, 21 Feb 2007) | 1 line
Add itertools.izip_longest().
........
r53838 | raymond.hettinger | 2007-02-21 18:22:05 +0100 (Wed, 21 Feb 2007) | 1 line
Remove filler struct item and fix leak.
........
325 lines
12 KiB
TeX
325 lines
12 KiB
TeX
\section{\module{zipfile} ---
|
|
Work with ZIP archives}
|
|
|
|
\declaremodule{standard}{zipfile}
|
|
\modulesynopsis{Read and write ZIP-format archive files.}
|
|
\moduleauthor{James C. Ahlstrom}{jim@interet.com}
|
|
\sectionauthor{James C. Ahlstrom}{jim@interet.com}
|
|
% LaTeX markup by Fred L. Drake, Jr. <fdrake@acm.org>
|
|
|
|
\versionadded{1.6}
|
|
|
|
The ZIP file format is a common archive and compression standard.
|
|
This module provides tools to create, read, write, append, and list a
|
|
ZIP file. Any advanced use of this module will require an
|
|
understanding of the format, as defined in
|
|
\citetitle[http://www.pkware.com/business_and_developers/developer/appnote/]
|
|
{PKZIP Application Note}.
|
|
|
|
This module does not currently handle ZIP files which have appended
|
|
comments, or multi-disk ZIP files. It can handle ZIP files that use
|
|
the ZIP64 extensions (that is ZIP files that are more than 4 GByte in
|
|
size). It supports decryption of encrypted files in ZIP archives, but
|
|
it cannot currently create an encrypted file.
|
|
|
|
The available attributes of this module are:
|
|
|
|
\begin{excdesc}{error}
|
|
The error raised for bad ZIP files.
|
|
\end{excdesc}
|
|
|
|
\begin{excdesc}{LargeZipFile}
|
|
The error raised when a ZIP file would require ZIP64 functionality but that
|
|
has not been enabled.
|
|
\end{excdesc}
|
|
|
|
\begin{classdesc*}{ZipFile}
|
|
The class for reading and writing ZIP files. See
|
|
``\citetitle{ZipFile Objects}'' (section \ref{zipfile-objects}) for
|
|
constructor details.
|
|
\end{classdesc*}
|
|
|
|
\begin{classdesc*}{PyZipFile}
|
|
Class for creating ZIP archives containing Python libraries.
|
|
\end{classdesc*}
|
|
|
|
\begin{classdesc}{ZipInfo}{\optional{filename\optional{, date_time}}}
|
|
Class used to represent information about a member of an archive.
|
|
Instances of this class are returned by the \method{getinfo()} and
|
|
\method{infolist()} methods of \class{ZipFile} objects. Most users
|
|
of the \module{zipfile} module will not need to create these, but
|
|
only use those created by this module.
|
|
\var{filename} should be the full name of the archive member, and
|
|
\var{date_time} should be a tuple containing six fields which
|
|
describe the time of the last modification to the file; the fields
|
|
are described in section \ref{zipinfo-objects}, ``ZipInfo Objects.''
|
|
\end{classdesc}
|
|
|
|
\begin{funcdesc}{is_zipfile}{filename}
|
|
Returns \code{True} if \var{filename} is a valid ZIP file based on its magic
|
|
number, otherwise returns \code{False}. This module does not currently
|
|
handle ZIP files which have appended comments.
|
|
\end{funcdesc}
|
|
|
|
\begin{datadesc}{ZIP_STORED}
|
|
The numeric constant for an uncompressed archive member.
|
|
\end{datadesc}
|
|
|
|
\begin{datadesc}{ZIP_DEFLATED}
|
|
The numeric constant for the usual ZIP compression method. This
|
|
requires the zlib module. No other compression methods are
|
|
currently supported.
|
|
\end{datadesc}
|
|
|
|
|
|
\begin{seealso}
|
|
\seetitle[http://www.pkware.com/business_and_developers/developer/appnote/]
|
|
{PKZIP Application Note}{Documentation on the ZIP file format by
|
|
Phil Katz, the creator of the format and algorithms used.}
|
|
|
|
\seetitle[http://www.info-zip.org/pub/infozip/]{Info-ZIP Home Page}{
|
|
Information about the Info-ZIP project's ZIP archive
|
|
programs and development libraries.}
|
|
\end{seealso}
|
|
|
|
|
|
\subsection{ZipFile Objects \label{zipfile-objects}}
|
|
|
|
\begin{classdesc}{ZipFile}{file\optional{, mode\optional{, compression\optional{, allowZip64}}}}
|
|
Open a ZIP file, where \var{file} can be either a path to a file
|
|
(a string) or a file-like object. The \var{mode} parameter
|
|
should be \code{'r'} to read an existing file, \code{'w'} to
|
|
truncate and write a new file, or \code{'a'} to append to an
|
|
existing file. For \var{mode} is \code{'a'} and \var{file}
|
|
refers to an existing ZIP file, then additional files are added to
|
|
it. If \var{file} does not refer to a ZIP file, then a new ZIP
|
|
archive is appended to the file. This is meant for adding a ZIP
|
|
archive to another file, such as \file{python.exe}. Using
|
|
|
|
\begin{verbatim}
|
|
cat myzip.zip >> python.exe
|
|
\end{verbatim}
|
|
|
|
also works, and at least \program{WinZip} can read such files.
|
|
If \var{mode} is \code{a} and the file does not exist at all,
|
|
it is created.
|
|
\var{compression} is the ZIP compression method to use when writing
|
|
the archive, and should be \constant{ZIP_STORED} or
|
|
\constant{ZIP_DEFLATED}; unrecognized values will cause
|
|
\exception{RuntimeError} to be raised. If \constant{ZIP_DEFLATED}
|
|
is specified but the \refmodule{zlib} module is not available,
|
|
\exception{RuntimeError} is also raised. The default is
|
|
\constant{ZIP_STORED}.
|
|
If \var{allowZip64} is \code{True} zipfile will create ZIP files that use
|
|
the ZIP64 extensions when the zipfile is larger than 2 GB. If it is
|
|
false (the default) \module{zipfile} will raise an exception when the
|
|
ZIP file would require ZIP64 extensions. ZIP64 extensions are disabled by
|
|
default because the default \program{zip} and \program{unzip} commands on
|
|
\UNIX{} (the InfoZIP utilities) don't support these extensions.
|
|
|
|
\versionchanged[If the file does not exist, it is created if the
|
|
mode is 'a']{2.6}
|
|
\end{classdesc}
|
|
|
|
\begin{methoddesc}{close}{}
|
|
Close the archive file. You must call \method{close()} before
|
|
exiting your program or essential records will not be written.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{getinfo}{name}
|
|
Return a \class{ZipInfo} object with information about the archive
|
|
member \var{name}.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{infolist}{}
|
|
Return a list containing a \class{ZipInfo} object for each member of
|
|
the archive. The objects are in the same order as their entries in
|
|
the actual ZIP file on disk if an existing archive was opened.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{namelist}{}
|
|
Return a list of archive members by name.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{printdir}{}
|
|
Print a table of contents for the archive to \code{sys.stdout}.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{setpassword}{pwd}
|
|
Set \var{pwd} as default password to extract encrypted files.
|
|
\versionadded{2.6}
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{read}{name\optional{, pwd}}
|
|
Return the bytes of the file in the archive. The archive must be
|
|
open for read or append. \var{pwd} is the password used for encrypted
|
|
files and, if specified, it will override the default password set with
|
|
\method{setpassword()}.
|
|
|
|
\versionchanged[\var{pwd} was added]{2.6}
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{testzip}{}
|
|
Read all the files in the archive and check their CRC's and file
|
|
headers. Return the name of the first bad file, or else return \code{None}.
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{write}{filename\optional{, arcname\optional{,
|
|
compress_type}}}
|
|
Write the file named \var{filename} to the archive, giving it the
|
|
archive name \var{arcname} (by default, this will be the same as
|
|
\var{filename}, but without a drive letter and with leading path
|
|
separators removed). If given, \var{compress_type} overrides the
|
|
value given for the \var{compression} parameter to the constructor
|
|
for the new entry. The archive must be open with mode \code{'w'}
|
|
or \code{'a'}.
|
|
|
|
\note{There is no official file name encoding for ZIP files.
|
|
If you have unicode file names, please convert them to byte strings
|
|
in your desired encoding before passing them to \method{write()}.
|
|
WinZip interprets all file names as encoded in CP437, also known
|
|
as DOS Latin.}
|
|
|
|
\note{Archive names should be relative to the archive root, that is,
|
|
they should not start with a path separator.}
|
|
\end{methoddesc}
|
|
|
|
\begin{methoddesc}{writestr}{zinfo_or_arcname, bytes}
|
|
Write the string \var{bytes} to the archive; \var{zinfo_or_arcname}
|
|
is either the file name it will be given in the archive, or a
|
|
\class{ZipInfo} instance. If it's an instance, at least the
|
|
filename, date, and time must be given. If it's a name, the date
|
|
and time is set to the current date and time. The archive must be
|
|
opened with mode \code{'w'} or \code{'a'}.
|
|
\end{methoddesc}
|
|
|
|
|
|
The following data attribute is also available:
|
|
|
|
\begin{memberdesc}{debug}
|
|
The level of debug output to use. This may be set from \code{0}
|
|
(the default, no output) to \code{3} (the most output). Debugging
|
|
information is written to \code{sys.stdout}.
|
|
\end{memberdesc}
|
|
|
|
|
|
\subsection{PyZipFile Objects \label{pyzipfile-objects}}
|
|
|
|
The \class{PyZipFile} constructor takes the same parameters as the
|
|
\class{ZipFile} constructor. Instances have one method in addition to
|
|
those of \class{ZipFile} objects.
|
|
|
|
\begin{methoddesc}[PyZipFile]{writepy}{pathname\optional{, basename}}
|
|
Search for files \file{*.py} and add the corresponding file to the
|
|
archive. The corresponding file is a \file{*.pyo} file if
|
|
available, else a \file{*.pyc} file, compiling if necessary. If the
|
|
pathname is a file, the filename must end with \file{.py}, and just
|
|
the (corresponding \file{*.py[co]}) file is added at the top level
|
|
(no path information). If it is a directory, and the directory is
|
|
not a package directory, then all the files \file{*.py[co]} are
|
|
added at the top level. If the directory is a package directory,
|
|
then all \file{*.py[oc]} are added under the package name as a file
|
|
path, and if any subdirectories are package directories, all of
|
|
these are added recursively. \var{basename} is intended for
|
|
internal use only. The \method{writepy()} method makes archives
|
|
with file names like this:
|
|
|
|
\begin{verbatim}
|
|
string.pyc # Top level name
|
|
test/__init__.pyc # Package directory
|
|
test/testall.pyc # Module test.testall
|
|
test/bogus/__init__.pyc # Subpackage directory
|
|
test/bogus/myfile.pyc # Submodule test.bogus.myfile
|
|
\end{verbatim}
|
|
\end{methoddesc}
|
|
|
|
|
|
\subsection{ZipInfo Objects \label{zipinfo-objects}}
|
|
|
|
Instances of the \class{ZipInfo} class are returned by the
|
|
\method{getinfo()} and \method{infolist()} methods of
|
|
\class{ZipFile} objects. Each object stores information about a
|
|
single member of the ZIP archive.
|
|
|
|
Instances have the following attributes:
|
|
|
|
\begin{memberdesc}[ZipInfo]{filename}
|
|
Name of the file in the archive.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{date_time}
|
|
The time and date of the last modification to the archive
|
|
member. This is a tuple of six values:
|
|
|
|
\begin{tableii}{c|l}{code}{Index}{Value}
|
|
\lineii{0}{Year}
|
|
\lineii{1}{Month (one-based)}
|
|
\lineii{2}{Day of month (one-based)}
|
|
\lineii{3}{Hours (zero-based)}
|
|
\lineii{4}{Minutes (zero-based)}
|
|
\lineii{5}{Seconds (zero-based)}
|
|
\end{tableii}
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{compress_type}
|
|
Type of compression for the archive member.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{comment}
|
|
Comment for the individual archive member.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{extra}
|
|
Expansion field data. The
|
|
\citetitle[http://www.pkware.com/business_and_developers/developer/appnote/]
|
|
{PKZIP Application Note} contains some comments on the internal
|
|
structure of the data contained in this string.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{create_system}
|
|
System which created ZIP archive.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{create_version}
|
|
PKZIP version which created ZIP archive.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{extract_version}
|
|
PKZIP version needed to extract archive.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{reserved}
|
|
Must be zero.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{flag_bits}
|
|
ZIP flag bits.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{volume}
|
|
Volume number of file header.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{internal_attr}
|
|
Internal attributes.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{external_attr}
|
|
External file attributes.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{header_offset}
|
|
Byte offset to the file header.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{CRC}
|
|
CRC-32 of the uncompressed file.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{compress_size}
|
|
Size of the compressed data.
|
|
\end{memberdesc}
|
|
|
|
\begin{memberdesc}[ZipInfo]{file_size}
|
|
Size of the uncompressed file.
|
|
\end{memberdesc}
|