Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / devtools / v8plus / html / python / lib / zipinfo-objects.html
CommitLineData
920dae64
AT
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<html>
3<head>
4<link rel="STYLESHEET" href="lib.css" type='text/css' />
5<link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" />
6<link rel='start' href='../index.html' title='Python Documentation Index' />
7<link rel="first" href="lib.html" title='Python Library Reference' />
8<link rel='contents' href='contents.html' title="Contents" />
9<link rel='index' href='genindex.html' title='Index' />
10<link rel='last' href='about.html' title='About this document...' />
11<link rel='help' href='about.html' title='About this document...' />
12<link rel="prev" href="pyzipfile-objects.html" />
13<link rel="parent" href="module-zipfile.html" />
14<link rel="next" href="module-tarfile.html" />
15<meta name='aesop' content='information' />
16<title>7.18.3 ZipInfo Objects </title>
17</head>
18<body>
19<DIV CLASS="navigation">
20<div id='top-navigation-panel' xml:id='top-navigation-panel'>
21<table align="center" width="100%" cellpadding="0" cellspacing="2">
22<tr>
23<td class='online-navigation'><a rel="prev" title="7.18.2 PyZipFile Objects"
24 href="pyzipfile-objects.html"><img src='../icons/previous.png'
25 border='0' height='32' alt='Previous Page' width='32' /></A></td>
26<td class='online-navigation'><a rel="parent" title="7.18 zipfile "
27 href="module-zipfile.html"><img src='../icons/up.png'
28 border='0' height='32' alt='Up One Level' width='32' /></A></td>
29<td class='online-navigation'><a rel="next" title="7.19 tarfile "
30 href="module-tarfile.html"><img src='../icons/next.png'
31 border='0' height='32' alt='Next Page' width='32' /></A></td>
32<td align="center" width="100%">Python Library Reference</td>
33<td class='online-navigation'><a rel="contents" title="Table of Contents"
34 href="contents.html"><img src='../icons/contents.png'
35 border='0' height='32' alt='Contents' width='32' /></A></td>
36<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
37 border='0' height='32' alt='Module Index' width='32' /></a></td>
38<td class='online-navigation'><a rel="index" title="Index"
39 href="genindex.html"><img src='../icons/index.png'
40 border='0' height='32' alt='Index' width='32' /></A></td>
41</tr></table>
42<div class='online-navigation'>
43<b class="navlabel">Previous:</b>
44<a class="sectref" rel="prev" href="pyzipfile-objects.html">7.18.2 PyZipFile Objects</A>
45<b class="navlabel">Up:</b>
46<a class="sectref" rel="parent" href="module-zipfile.html">7.18 zipfile </A>
47<b class="navlabel">Next:</b>
48<a class="sectref" rel="next" href="module-tarfile.html">7.19 tarfile </A>
49</div>
50<hr /></div>
51</DIV>
52<!--End of Navigation Panel-->
53
54<H2><A NAME="SECTION0091830000000000000000"></A><A NAME="zipinfo-objects"></A>
55<BR>
567.18.3 ZipInfo Objects
57</H2>
58
59<P>
60Instances of the <tt class="class">ZipInfo</tt> class are returned by the
61<tt class="method">getinfo()</tt> and <tt class="method">infolist()</tt> methods of
62<tt class="class">ZipFile</tt> objects. Each object stores information about a
63single member of the ZIP archive.
64
65<P>
66Instances have the following attributes:
67
68<P>
69<dl><dt><b><tt id='l2h-2870' xml:id='l2h-2870' class="member">filename</tt></b></dt>
70<dd>
71 Name of the file in the archive.
72</dl>
73
74<P>
75<dl><dt><b><tt id='l2h-2871' xml:id='l2h-2871' class="member">date_time</tt></b></dt>
76<dd>
77 The time and date of the last modification to the archive
78 member. This is a tuple of six values:
79
80<P>
81<div class="center"><table class="realtable">
82 <thead>
83 <tr>
84 <th class="center">Index</th>
85 <th class="left" >Value</th>
86 </tr>
87 </thead>
88 <tbody>
89 <tr><td class="center" valign="baseline"><code>0</code></td>
90 <td class="left" >Year</td></tr>
91 <tr><td class="center" valign="baseline"><code>1</code></td>
92 <td class="left" >Month (one-based)</td></tr>
93 <tr><td class="center" valign="baseline"><code>2</code></td>
94 <td class="left" >Day of month (one-based)</td></tr>
95 <tr><td class="center" valign="baseline"><code>3</code></td>
96 <td class="left" >Hours (zero-based)</td></tr>
97 <tr><td class="center" valign="baseline"><code>4</code></td>
98 <td class="left" >Minutes (zero-based)</td></tr>
99 <tr><td class="center" valign="baseline"><code>5</code></td>
100 <td class="left" >Seconds (zero-based)</td></tr></tbody>
101</table></div>
102</dl>
103
104<P>
105<dl><dt><b><tt id='l2h-2872' xml:id='l2h-2872' class="member">compress_type</tt></b></dt>
106<dd>
107 Type of compression for the archive member.
108</dl>
109
110<P>
111<dl><dt><b><tt id='l2h-2873' xml:id='l2h-2873' class="member">comment</tt></b></dt>
112<dd>
113 Comment for the individual archive member.
114</dl>
115
116<P>
117<dl><dt><b><tt id='l2h-2874' xml:id='l2h-2874' class="member">extra</tt></b></dt>
118<dd>
119 Expansion field data. The
120 <em class="citetitle"><a
121 href="http://www.pkware.com/appnote.html"
122 title="PKZIP Application
123 Note"
124 >PKZIP Application
125 Note</a></em> contains some comments on the internal structure of the data
126 contained in this string.
127</dl>
128
129<P>
130<dl><dt><b><tt id='l2h-2875' xml:id='l2h-2875' class="member">create_system</tt></b></dt>
131<dd>
132 System which created ZIP archive.
133</dl>
134
135<P>
136<dl><dt><b><tt id='l2h-2876' xml:id='l2h-2876' class="member">create_version</tt></b></dt>
137<dd>
138 PKZIP version which created ZIP archive.
139</dl>
140
141<P>
142<dl><dt><b><tt id='l2h-2877' xml:id='l2h-2877' class="member">extract_version</tt></b></dt>
143<dd>
144 PKZIP version needed to extract archive.
145</dl>
146
147<P>
148<dl><dt><b><tt id='l2h-2878' xml:id='l2h-2878' class="member">reserved</tt></b></dt>
149<dd>
150 Must be zero.
151</dl>
152
153<P>
154<dl><dt><b><tt id='l2h-2879' xml:id='l2h-2879' class="member">flag_bits</tt></b></dt>
155<dd>
156 ZIP flag bits.
157</dl>
158
159<P>
160<dl><dt><b><tt id='l2h-2880' xml:id='l2h-2880' class="member">volume</tt></b></dt>
161<dd>
162 Volume number of file header.
163</dl>
164
165<P>
166<dl><dt><b><tt id='l2h-2881' xml:id='l2h-2881' class="member">internal_attr</tt></b></dt>
167<dd>
168 Internal attributes.
169</dl>
170
171<P>
172<dl><dt><b><tt id='l2h-2882' xml:id='l2h-2882' class="member">external_attr</tt></b></dt>
173<dd>
174 External file attributes.
175</dl>
176
177<P>
178<dl><dt><b><tt id='l2h-2883' xml:id='l2h-2883' class="member">header_offset</tt></b></dt>
179<dd>
180 Byte offset to the file header.
181</dl>
182
183<P>
184<dl><dt><b><tt id='l2h-2884' xml:id='l2h-2884' class="member">file_offset</tt></b></dt>
185<dd>
186 Byte offset to the start of the file data.
187</dl>
188
189<P>
190<dl><dt><b><tt id='l2h-2885' xml:id='l2h-2885' class="member">CRC</tt></b></dt>
191<dd>
192 CRC-32 of the uncompressed file.
193</dl>
194
195<P>
196<dl><dt><b><tt id='l2h-2886' xml:id='l2h-2886' class="member">compress_size</tt></b></dt>
197<dd>
198 Size of the compressed data.
199</dl>
200
201<P>
202<dl><dt><b><tt id='l2h-2887' xml:id='l2h-2887' class="member">file_size</tt></b></dt>
203<dd>
204 Size of the uncompressed file.
205</dl>
206
207<DIV CLASS="navigation">
208<div class='online-navigation'>
209<p></p><hr />
210<table align="center" width="100%" cellpadding="0" cellspacing="2">
211<tr>
212<td class='online-navigation'><a rel="prev" title="7.18.2 PyZipFile Objects"
213 href="pyzipfile-objects.html"><img src='../icons/previous.png'
214 border='0' height='32' alt='Previous Page' width='32' /></A></td>
215<td class='online-navigation'><a rel="parent" title="7.18 zipfile "
216 href="module-zipfile.html"><img src='../icons/up.png'
217 border='0' height='32' alt='Up One Level' width='32' /></A></td>
218<td class='online-navigation'><a rel="next" title="7.19 tarfile "
219 href="module-tarfile.html"><img src='../icons/next.png'
220 border='0' height='32' alt='Next Page' width='32' /></A></td>
221<td align="center" width="100%">Python Library Reference</td>
222<td class='online-navigation'><a rel="contents" title="Table of Contents"
223 href="contents.html"><img src='../icons/contents.png'
224 border='0' height='32' alt='Contents' width='32' /></A></td>
225<td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png'
226 border='0' height='32' alt='Module Index' width='32' /></a></td>
227<td class='online-navigation'><a rel="index" title="Index"
228 href="genindex.html"><img src='../icons/index.png'
229 border='0' height='32' alt='Index' width='32' /></A></td>
230</tr></table>
231<div class='online-navigation'>
232<b class="navlabel">Previous:</b>
233<a class="sectref" rel="prev" href="pyzipfile-objects.html">7.18.2 PyZipFile Objects</A>
234<b class="navlabel">Up:</b>
235<a class="sectref" rel="parent" href="module-zipfile.html">7.18 zipfile </A>
236<b class="navlabel">Next:</b>
237<a class="sectref" rel="next" href="module-tarfile.html">7.19 tarfile </A>
238</div>
239</div>
240<hr />
241<span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span>
242</DIV>
243<!--End of Navigation Panel-->
244<ADDRESS>
245See <i><a href="about.html">About this document...</a></i> for information on suggesting changes.
246</ADDRESS>
247</BODY>
248</HTML>