Debian Codegraph @

docs/pycdlib-api.html

raw symbols SCIP
1 <html><head><title>Python: module pycdlib.pycdlib</title>
2 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
3 </head><body bgcolor="#f0f0f8">
4
5 <table width="100%" cellspacing="0" cellpadding="2" border="0" summary="heading">
6 <tr bgcolor="#7799ee">
7 <td valign="bottom">&#160;<br/>
8 <font color="#ffffff" face="helvetica, arial">&#160;<br/><big><big><strong><a href="pycdlib.html"><font color="#ffffff">pycdlib</font></a>.pycdlib</strong></big></big></font></td><td align="right" valign="bottom"><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br/></font></td></tr></table>
9 <p><tt>Main&#160;<a href="#PyCdlib">PyCdlib</a>&#160;class&#160;and&#160;support&#160;classes&#160;and&#160;utilities.</tt></p>
10 <p>
11 </p><p>
12 </p><table width="100%" cellspacing="0" cellpadding="2" border="0" summary="section">
13 <tr bgcolor="#ee77aa">
14 <td colspan="3" valign="bottom">&#160;<br/>
15 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
16
17 <tr><td bgcolor="#ee77aa"><tt>&#160;&#160;&#160;&#160;&#160;&#160;</tt></td><td>&#160;</td>
18 <td width="100%"><dl>
19 <dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
20 </font></dt><dd>
21 <dl>
22 <dt><font face="helvetica, arial"><a href="pycdlib.pycdlib.html#PyCdlib">PyCdlib</a>
23 </font></dt></dl>
24 </dd>
25 </dl>
26 <p>
27 </p><table width="100%" cellspacing="0" cellpadding="2" border="0" summary="section">
28 <tr bgcolor="#ffc8d8">
29 <td colspan="3" valign="bottom">&#160;<br/>
30 <font color="#000000" face="helvetica, arial"><a name="PyCdlib">class <strong>PyCdlib</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
31
32 <tr bgcolor="#ffc8d8"><td rowspan="2"><tt>&#160;&#160;&#160;</tt></td>
33 <td colspan="2"><tt><a href="#PyCdlib">PyCdlib</a>(always_consistent=False)<br/>
34 &#160;<br/>
35 The&#160;main&#160;class&#160;for&#160;manipulating&#160;ISOs.<br/>&#160;</tt></td></tr>
36 <tr><td>&#160;</td>
37 <td width="100%">Methods defined here:<br/>
38 <dl><dt><a name="PyCdlib-__init__"><strong>__init__</strong></a>(self, always_consistent=False)</dt><dd><tt>Initialize&#160;self.&#160;&#160;See&#160;help(type(self))&#160;for&#160;accurate&#160;signature.</tt></dd></dl>
39
40 <dl><dt><a name="PyCdlib-add_directory"><strong>add_directory</strong></a>(self, iso_path=None, rr_name=None, joliet_path=None, file_mode=None, udf_path=None)</dt><dd><tt>Add&#160;a&#160;directory&#160;to&#160;the&#160;ISO.&#160;&#160;At&#160;least&#160;one&#160;of&#160;an&#160;iso_path,&#160;joliet_path,<br/>
41 or&#160;udf_path&#160;must&#160;be&#160;provided.&#160;&#160;Providing&#160;joliet_path&#160;on&#160;a&#160;non-Joliet<br/>
42 ISO,&#160;or&#160;udf_path&#160;on&#160;a&#160;non-UDF&#160;ISO,&#160;is&#160;an&#160;error.&#160;&#160;If&#160;the&#160;ISO&#160;contains<br/>
43 Rock&#160;Ridge,&#160;then&#160;a&#160;Rock&#160;Ridge&#160;name&#160;must&#160;be&#160;provided.<br/>
44 &#160;<br/>
45 Parameters:<br/>
46 &#160;iso_path&#160;-&#160;The&#160;ISO9660&#160;absolute&#160;path&#160;to&#160;use&#160;for&#160;the&#160;directory.<br/>
47 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;to&#160;use&#160;for&#160;the&#160;directory.<br/>
48 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;absolute&#160;path&#160;to&#160;use&#160;for&#160;the&#160;directory.<br/>
49 &#160;file_mode&#160;-&#160;The&#160;POSIX&#160;file&#160;mode&#160;to&#160;use&#160;for&#160;the&#160;directory.&#160;&#160;This&#160;only<br/>
50 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;applies&#160;for&#160;Rock&#160;Ridge&#160;ISOs.<br/>
51 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;absolute&#160;path&#160;to&#160;use&#160;for&#160;the&#160;directory.<br/>
52 Returns:<br/>
53 &#160;Nothing.</tt></dd></dl>
54
55 <dl><dt><a name="PyCdlib-add_eltorito"><strong>add_eltorito</strong></a>(self, bootfile_path, bootcatfile=None, rr_bootcatname=None, joliet_bootcatfile=None, boot_load_size=None, platform_id=0, boot_info_table=False, efi=False, media_name='noemul', bootable=True, boot_load_seg=0, udf_bootcatfile=None)</dt><dd><tt>Add&#160;an&#160;El&#160;Torito&#160;Boot&#160;Record,&#160;and&#160;associated&#160;files,&#160;to&#160;the&#160;ISO.&#160;&#160;The<br/>
56 file&#160;that&#160;will&#160;be&#160;used&#160;as&#160;the&#160;bootfile&#160;must&#160;be&#160;passed&#160;into&#160;this&#160;function<br/>
57 and&#160;must&#160;already&#160;be&#160;present&#160;on&#160;the&#160;ISO.<br/>
58 &#160;<br/>
59 Parameters:<br/>
60 &#160;bootfile_path&#160;-&#160;The&#160;file&#160;to&#160;use&#160;as&#160;the&#160;boot&#160;file;&#160;it&#160;must&#160;already<br/>
61 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;exist&#160;on&#160;this&#160;ISO.<br/>
62 &#160;bootcatfile&#160;-&#160;The&#160;fake&#160;file&#160;to&#160;use&#160;as&#160;the&#160;boot&#160;catalog&#160;entry;&#160;set&#160;to<br/>
63 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;BOOT.CAT;1&#160;by&#160;default.<br/>
64 &#160;rr_bootcatname&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;for&#160;the&#160;fake&#160;file&#160;to&#160;use&#160;as&#160;the<br/>
65 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;boot&#160;catalog&#160;entry;&#160;set&#160;to&#160;'boot.cat'&#160;by&#160;default.<br/>
66 &#160;joliet_bootcatfile&#160;-&#160;The&#160;Joliet&#160;name&#160;for&#160;the&#160;fake&#160;file&#160;to&#160;use&#160;as&#160;the<br/>
67 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;boot&#160;catalog&#160;entry;&#160;set&#160;to&#160;'boot.cat'&#160;by&#160;default.<br/>
68 &#160;boot_load_size&#160;-&#160;The&#160;number&#160;of&#160;sectors&#160;to&#160;use&#160;for&#160;the&#160;boot&#160;entry;&#160;if<br/>
69 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;set&#160;to&#160;None&#160;(the&#160;default),&#160;the&#160;number&#160;of&#160;sectors&#160;will<br/>
70 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;be&#160;calculated.<br/>
71 &#160;platform_id&#160;-&#160;The&#160;platform&#160;ID&#160;to&#160;set&#160;for&#160;the&#160;El&#160;Torito&#160;entry;&#160;0&#160;is&#160;for<br/>
72 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;x86,&#160;1&#160;is&#160;for&#160;Power&#160;PC,&#160;2&#160;is&#160;for&#160;Mac,&#160;and&#160;0xef&#160;is&#160;for<br/>
73 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;UEFI.&#160;&#160;0&#160;is&#160;the&#160;default.<br/>
74 &#160;boot_info_table&#160;-&#160;Whether&#160;to&#160;add&#160;a&#160;boot&#160;info&#160;table&#160;to&#160;the&#160;ISO.&#160;&#160;The<br/>
75 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default&#160;is&#160;False.<br/>
76 &#160;efi&#160;-&#160;Whether&#160;this&#160;is&#160;an&#160;EFI&#160;entry&#160;for&#160;El&#160;Torito.&#160;&#160;The&#160;default&#160;is&#160;False.<br/>
77 &#160;media_name&#160;-&#160;The&#160;name&#160;of&#160;the&#160;media&#160;type,&#160;one&#160;of&#160;'noemul',&#160;'floppy',&#160;or&#160;'hdemul'.<br/>
78 &#160;bootable&#160;-&#160;Whether&#160;the&#160;boot&#160;media&#160;is&#160;bootable.&#160;&#160;The&#160;default&#160;is&#160;True.<br/>
79 &#160;boot_load_seg&#160;-&#160;The&#160;load&#160;segment&#160;address&#160;of&#160;the&#160;boot&#160;image.<br/>
80 &#160;udf_bootcatfile&#160;-&#160;The&#160;name&#160;of&#160;the&#160;boot.cat&#160;file&#160;on&#160;the&#160;UDF&#160;filesystem.<br/>
81 Returns:<br/>
82 &#160;Nothing.</tt></dd></dl>
83
84 <dl><dt><a name="PyCdlib-add_file"><strong>add_file</strong></a>(self, filename, iso_path=None, rr_name=None, joliet_path=None, file_mode=None, udf_path=None)</dt><dd><tt>Add&#160;a&#160;file&#160;to&#160;the&#160;ISO.&#160;&#160;If&#160;the&#160;ISO&#160;is&#160;a&#160;Rock&#160;Ridge&#160;one,&#160;then&#160;a&#160;Rock<br/>
85 Ridge&#160;name&#160;must&#160;also&#160;be&#160;provided.&#160;&#160;If&#160;the&#160;ISO&#160;is&#160;a&#160;Joliet&#160;one,&#160;then&#160;a<br/>
86 Joliet&#160;path&#160;may&#160;also&#160;be&#160;provided;&#160;while&#160;it&#160;is&#160;optional&#160;to&#160;do&#160;so,&#160;it&#160;is<br/>
87 highly&#160;recommended.<br/>
88 &#160;<br/>
89 Parameters:<br/>
90 &#160;filename&#160;-&#160;The&#160;filename&#160;to&#160;use&#160;for&#160;the&#160;data&#160;contents&#160;for&#160;the&#160;new&#160;file.<br/>
91 &#160;iso_path&#160;-&#160;The&#160;ISO9660&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
92 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
93 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
94 &#160;file_mode&#160;-&#160;The&#160;POSIX&#160;file_mode&#160;to&#160;apply&#160;to&#160;this&#160;file.&#160;&#160;This&#160;only<br/>
95 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;applies&#160;if&#160;this&#160;is&#160;a&#160;Rock&#160;Ridge&#160;ISO.&#160;&#160;If&#160;this&#160;is&#160;None&#160;(the<br/>
96 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default),&#160;the&#160;permissions&#160;from&#160;the&#160;original&#160;file&#160;are&#160;used.<br/>
97 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;name&#160;of&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
98 Returns:<br/>
99 &#160;Nothing.</tt></dd></dl>
100
101 <dl><dt><a name="PyCdlib-add_fp"><strong>add_fp</strong></a>(self, fp, length, iso_path=None, rr_name=None, joliet_path=None, file_mode=None, udf_path=None)</dt><dd><tt>Add&#160;a&#160;file&#160;to&#160;the&#160;ISO.&#160;&#160;If&#160;the&#160;ISO&#160;is&#160;a&#160;Rock&#160;Ridge&#160;one,&#160;then&#160;a&#160;Rock<br/>
102 Ridge&#160;name&#160;must&#160;also&#160;be&#160;provided.&#160;&#160;If&#160;the&#160;ISO&#160;is&#160;a&#160;Joliet&#160;one,&#160;then&#160;a<br/>
103 Joliet&#160;path&#160;may&#160;also&#160;be&#160;provided;&#160;while&#160;it&#160;is&#160;optional&#160;to&#160;do&#160;so,&#160;it&#160;is<br/>
104 highly&#160;recommended.&#160;&#160;Note&#160;that&#160;the&#160;caller&#160;must&#160;ensure&#160;that&#160;'fp'&#160;remains<br/>
105 open&#160;for&#160;the&#160;lifetime&#160;of&#160;the&#160;<a href="#PyCdlib">PyCdlib</a>&#160;<a href="builtins.html#object">object</a>,&#160;as&#160;the&#160;<a href="#PyCdlib">PyCdlib</a>&#160;class&#160;uses<br/>
106 the&#160;file&#160;descriptor&#160;internally&#160;when&#160;writing&#160;(mastering)&#160;the&#160;ISO.&#160;&#160;To<br/>
107 have&#160;<a href="#PyCdlib">PyCdlib</a>&#160;manage&#160;this&#160;automatically,&#160;use&#160;'add_file'&#160;instead.<br/>
108 &#160;<br/>
109 Parameters:<br/>
110 &#160;fp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;to&#160;use&#160;for&#160;the&#160;contents&#160;of&#160;the&#160;new&#160;file.<br/>
111 &#160;length&#160;-&#160;The&#160;length&#160;of&#160;the&#160;data&#160;for&#160;the&#160;new&#160;file.<br/>
112 &#160;iso_path&#160;-&#160;The&#160;ISO9660&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
113 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
114 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
115 &#160;file_mode&#160;-&#160;The&#160;POSIX&#160;file_mode&#160;to&#160;apply&#160;to&#160;this&#160;file.&#160;&#160;This&#160;only<br/>
116 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;applies&#160;if&#160;this&#160;is&#160;a&#160;Rock&#160;Ridge&#160;ISO.&#160;&#160;If&#160;this&#160;is&#160;None&#160;(the<br/>
117 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default),&#160;the&#160;permissions&#160;from&#160;the&#160;original&#160;file&#160;are&#160;used.<br/>
118 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;name&#160;of&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
119 Returns:<br/>
120 &#160;Nothing.</tt></dd></dl>
121
122 <dl><dt><a name="PyCdlib-add_hard_link"><strong>add_hard_link</strong></a>(self, **kwargs)</dt><dd><tt>Add&#160;a&#160;hard&#160;link&#160;to&#160;the&#160;ISO.&#160;&#160;Hard&#160;links&#160;are&#160;alternate&#160;names&#160;for&#160;the<br/>
123 same&#160;file&#160;contents&#160;that&#160;don't&#160;take&#160;up&#160;any&#160;additional&#160;space&#160;on&#160;the&#160;the<br/>
124 ISO.&#160;&#160;This&#160;API&#160;can&#160;be&#160;used&#160;to&#160;create&#160;hard&#160;links&#160;between&#160;two&#160;files&#160;on<br/>
125 the&#160;ISO9660&#160;filesystem,&#160;between&#160;two&#160;files&#160;on&#160;the&#160;Joliet&#160;filesystem,&#160;or<br/>
126 between&#160;a&#160;file&#160;on&#160;the&#160;ISO9660&#160;filesystem&#160;and&#160;the&#160;Joliet&#160;filesystem.<br/>
127 In&#160;all&#160;cases,&#160;exactly&#160;one&#160;old&#160;path&#160;must&#160;be&#160;specified,&#160;and&#160;exactly&#160;one<br/>
128 new&#160;path&#160;must&#160;be&#160;specified.<br/>
129 Note&#160;that&#160;this&#160;is&#160;an&#160;advanced&#160;API,&#160;so&#160;using&#160;it&#160;in&#160;combination&#160;with&#160;the<br/>
130 higher-level&#160;APIs&#160;(like&#160;<a href="#PyCdlib-rm_file">rm_file</a>())&#160;may&#160;result&#160;in&#160;unexpected&#160;behavior.<br/>
131 Once&#160;this&#160;API&#160;has&#160;been&#160;used,&#160;this&#160;API&#160;and&#160;<a href="#PyCdlib-rm_hard_link">rm_hard_link</a>()&#160;should&#160;be<br/>
132 preferred&#160;over&#160;<a href="#PyCdlib-add_file">add_file</a>()&#160;and&#160;<a href="#PyCdlib-rm_file">rm_file</a>(),&#160;respectively.<br/>
133 &#160;<br/>
134 Parameters:<br/>
135 &#160;iso_old_path&#160;-&#160;The&#160;old&#160;path&#160;on&#160;the&#160;ISO9660&#160;filesystem&#160;to&#160;link&#160;from.<br/>
136 &#160;iso_new_path&#160;-&#160;The&#160;new&#160;path&#160;on&#160;the&#160;ISO9660&#160;filesystem&#160;to&#160;link&#160;to.<br/>
137 &#160;joliet_old_path&#160;-&#160;The&#160;old&#160;path&#160;on&#160;the&#160;Joliet&#160;filesystem&#160;to&#160;link&#160;from.<br/>
138 &#160;joliet_new_path&#160;-&#160;The&#160;new&#160;path&#160;on&#160;the&#160;Joliet&#160;filesystem&#160;to&#160;link&#160;to.<br/>
139 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;to&#160;use&#160;for&#160;the&#160;new&#160;file&#160;if&#160;this&#160;is&#160;a&#160;Rock<br/>
140 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Ridge&#160;ISO&#160;and&#160;the&#160;new&#160;path&#160;is&#160;on&#160;the&#160;ISO9660&#160;filesystem.<br/>
141 &#160;boot_catalog_old&#160;-&#160;Use&#160;the&#160;El&#160;Torito&#160;boot&#160;catalog&#160;as&#160;the&#160;old&#160;path.<br/>
142 &#160;udf_old_path&#160;-&#160;The&#160;old&#160;path&#160;on&#160;the&#160;UDF&#160;filesystem&#160;to&#160;link&#160;from.<br/>
143 &#160;udf_new_path&#160;-&#160;The&#160;new&#160;path&#160;on&#160;the&#160;UDF&#160;filesystem&#160;to&#160;link&#160;to.<br/>
144 Returns:<br/>
145 &#160;Nothing.</tt></dd></dl>
146
147 <dl><dt><a name="PyCdlib-add_isohybrid"><strong>add_isohybrid</strong></a>(self, part_entry=1, mbr_id=None, part_offset=0, geometry_sectors=32, geometry_heads=64, part_type=None, mac=False, efi=None)</dt><dd><tt>Make&#160;an&#160;ISO&#160;a&#160;'hybrid',&#160;which&#160;means&#160;that&#160;it&#160;can&#160;be&#160;booted&#160;either&#160;from&#160;a<br/>
148 CD&#160;or&#160;from&#160;more&#160;traditional&#160;media&#160;(like&#160;a&#160;USB&#160;stick).&#160;&#160;This&#160;requires<br/>
149 that&#160;the&#160;ISO&#160;already&#160;have&#160;El&#160;Torito,&#160;and&#160;will&#160;use&#160;the&#160;El&#160;Torito&#160;boot<br/>
150 file&#160;as&#160;a&#160;bootable&#160;image.&#160;&#160;That&#160;image&#160;must&#160;contain&#160;a&#160;certain&#160;signature<br/>
151 in&#160;order&#160;to&#160;work&#160;as&#160;a&#160;hybrid&#160;(if&#160;using&#160;syslinux,&#160;this&#160;generally&#160;means<br/>
152 the&#160;isohdpfx.bin&#160;files).<br/>
153 &#160;<br/>
154 Parameters:<br/>
155 &#160;part_entry&#160;-&#160;The&#160;partition&#160;entry&#160;to&#160;use;&#160;one&#160;by&#160;default.<br/>
156 &#160;mbr_id&#160;-&#160;The&#160;mbr_id&#160;to&#160;use.&#160;&#160;If&#160;set&#160;to&#160;None&#160;(the&#160;default),&#160;a&#160;random&#160;one<br/>
157 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;will&#160;be&#160;generated.<br/>
158 &#160;part_offset&#160;-&#160;The&#160;partition&#160;offset&#160;to&#160;use;&#160;zero&#160;by&#160;default.<br/>
159 &#160;geometry_sectors&#160;-&#160;The&#160;number&#160;of&#160;sectors&#160;to&#160;assign;&#160;thirty-two&#160;by<br/>
160 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default.<br/>
161 &#160;geometry_heads&#160;-&#160;The&#160;number&#160;of&#160;heads&#160;to&#160;assign;&#160;sixty-four&#160;by&#160;default.<br/>
162 &#160;part_type&#160;-&#160;The&#160;partition&#160;type&#160;to&#160;assign;&#160;twenty-three&#160;by&#160;default,&#160;but<br/>
163 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;will&#160;automatically&#160;be&#160;set&#160;to&#160;0&#160;if&#160;mac&#160;or&#160;efi&#160;are&#160;True.<br/>
164 &#160;mac&#160;-&#160;Add&#160;support&#160;for&#160;Mac;&#160;False&#160;by&#160;default.<br/>
165 &#160;efi&#160;-&#160;Add&#160;support&#160;for&#160;EFI;&#160;False&#160;by&#160;default,&#160;but&#160;will&#160;automatically<br/>
166 &#160;&#160;&#160;&#160;&#160;&#160;&#160;be&#160;set&#160;to&#160;True&#160;if&#160;mac&#160;is&#160;True.<br/>
167 Returns:<br/>
168 &#160;Nothing.</tt></dd></dl>
169
170 <dl><dt><a name="PyCdlib-add_joliet_directory"><strong>add_joliet_directory</strong></a>(self, joliet_path)</dt><dd><tt>(deprecated)&#160;Add&#160;a&#160;directory&#160;to&#160;the&#160;Joliet&#160;portion&#160;of&#160;the&#160;ISO.&#160;&#160;Since<br/>
171 Joliet&#160;occupies&#160;a&#160;completely&#160;different&#160;context&#160;than&#160;ISO9660,&#160;this<br/>
172 method&#160;can&#160;be&#160;invoked&#160;to&#160;create&#160;a&#160;completely&#160;different&#160;directory<br/>
173 structure&#160;in&#160;the&#160;Joliet&#160;context,&#160;though&#160;that&#160;is&#160;generally&#160;not&#160;advised.<br/>
174 It&#160;is&#160;recommended&#160;to&#160;use&#160;the&#160;'joliet_path'&#160;argument&#160;of&#160;the<br/>
175 'add_directory'&#160;instead&#160;of&#160;this&#160;method.<br/>
176 &#160;<br/>
177 Parameters:<br/>
178 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;directory&#160;to&#160;create.<br/>
179 Returns:<br/>
180 &#160;Nothing.</tt></dd></dl>
181
182 <dl><dt><a name="PyCdlib-add_symlink"><strong>add_symlink</strong></a>(self, symlink_path=None, rr_symlink_name=None, rr_path=None, joliet_path=None, udf_symlink_path=None, udf_target=None)</dt><dd><tt>Add&#160;a&#160;symlink&#160;from&#160;rr_symlink_name&#160;to&#160;the&#160;rr_path.&#160;&#160;The&#160;ISO&#160;must&#160;have<br/>
183 either&#160;Rock&#160;Ridge&#160;or&#160;UDF&#160;support&#160;(or&#160;both).<br/>
184 &#160;<br/>
185 Parameters:<br/>
186 &#160;symlink_path&#160;-&#160;The&#160;ISO9660&#160;path&#160;of&#160;the&#160;symlink&#160;itself&#160;on&#160;the&#160;ISO.<br/>
187 &#160;rr_symlink_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;symlink&#160;itself&#160;on&#160;the&#160;ISO.<br/>
188 &#160;rr_path&#160;-&#160;The&#160;path&#160;that&#160;the&#160;symlink&#160;points&#160;to&#160;on&#160;the&#160;Rock&#160;Ridge&#160;part<br/>
189 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;of&#160;the&#160;ISO.<br/>
190 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;of&#160;the&#160;symlink&#160;(if&#160;this&#160;ISO&#160;has&#160;Joliet).<br/>
191 &#160;udf_symlink_path&#160;-&#160;The&#160;UDF&#160;path&#160;of&#160;the&#160;symlink&#160;itself&#160;on&#160;the&#160;ISO.<br/>
192 &#160;udf_target&#160;-&#160;The&#160;UDF&#160;name&#160;of&#160;the&#160;entry&#160;on&#160;the&#160;ISO&#160;that&#160;the&#160;symlink<br/>
193 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;points&#160;to.<br/>
194 Returns:<br/>
195 &#160;Nothing.</tt></dd></dl>
196
197 <dl><dt><a name="PyCdlib-clear_hidden"><strong>clear_hidden</strong></a>(self, iso_path=None, rr_path=None, joliet_path=None)</dt><dd><tt>Clear&#160;the&#160;ISO9660&#160;hidden&#160;attribute&#160;on&#160;a&#160;file&#160;or&#160;directory.&#160;&#160;This&#160;will<br/>
198 cause&#160;the&#160;file&#160;or&#160;directory&#160;to&#160;show&#160;up&#160;when&#160;listing&#160;entries&#160;on&#160;the&#160;ISO.<br/>
199 Exactly&#160;one&#160;of&#160;iso_path,&#160;rr_path,&#160;or&#160;joliet_path&#160;must&#160;be&#160;specified.<br/>
200 &#160;<br/>
201 Parameters:<br/>
202 &#160;iso_path&#160;-&#160;The&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;clear&#160;the&#160;hidden&#160;bit&#160;from.<br/>
203 &#160;rr_path&#160;-&#160;The&#160;Rock&#160;Ridge&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;clear&#160;the&#160;hidden&#160;bit&#160;from.<br/>
204 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;clear&#160;the&#160;hidden&#160;bit&#160;from.<br/>
205 Returns:<br/>
206 &#160;Nothing.</tt></dd></dl>
207
208 <dl><dt><a name="PyCdlib-close"><strong>close</strong></a>(self)</dt><dd><tt>Close&#160;the&#160;<a href="#PyCdlib">PyCdlib</a>&#160;<a href="builtins.html#object">object</a>,&#160;and&#160;re-initialize&#160;the&#160;<a href="builtins.html#object">object</a>&#160;to&#160;the&#160;defaults.<br/>
209 The&#160;<a href="builtins.html#object">object</a>&#160;can&#160;then&#160;be&#160;re-used&#160;for&#160;manipulation&#160;of&#160;another&#160;ISO.<br/>
210 &#160;<br/>
211 Parameters:<br/>
212 &#160;None.<br/>
213 Returns:<br/>
214 &#160;Nothing.</tt></dd></dl>
215
216 <dl><dt><a name="PyCdlib-duplicate_pvd"><strong>duplicate_pvd</strong></a>(self)</dt><dd><tt>Add&#160;a&#160;duplicate&#160;PVD&#160;to&#160;the&#160;ISO.&#160;&#160;This&#160;is&#160;a&#160;mostly&#160;useless&#160;feature<br/>
217 allowed&#160;by&#160;Ecma-119&#160;to&#160;have&#160;duplicate&#160;PVDs&#160;to&#160;avoid&#160;possible&#160;corruption.<br/>
218 &#160;<br/>
219 Parameters:<br/>
220 &#160;None.<br/>
221 Returns:<br/>
222 &#160;Nothing.</tt></dd></dl>
223
224 <dl><dt><a name="PyCdlib-file_mode"><strong>file_mode</strong></a>(self, **kwargs)</dt><dd><tt>Get&#160;the&#160;POSIX&#160;file&#160;mode&#160;of&#160;the&#160;file&#160;if&#160;is&#160;a&#160;Rock&#160;Ridge&#160;file.<br/>
225 &#160;<br/>
226 Parameters:<br/>
227 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;ISO&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
228 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
229 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
230 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
231 Returns:<br/>
232 &#160;An&#160;integer&#160;representing&#160;the&#160;POSIX&#160;file&#160;mode&#160;of&#160;the&#160;file&#160;if&#160;it&#160;is&#160;Rock<br/>
233 &#160;Ridge,&#160;or&#160;None&#160;otherwise.</tt></dd></dl>
234
235 <dl><dt><a name="PyCdlib-force_consistency"><strong>force_consistency</strong></a>(self)</dt><dd><tt>Make&#160;sure&#160;the&#160;ISO&#160;<a href="builtins.html#object">object</a>&#160;is&#160;fully&#160;consistent.&#160;&#160;<a href="#PyCdlib">PyCdlib</a>&#160;typically&#160;delays<br/>
236 doing&#160;work&#160;until&#160;it&#160;is&#160;necessary,&#160;and&#160;this&#160;detail&#160;is&#160;usually&#160;hidden<br/>
237 from&#160;users.&#160;&#160;However,&#160;there&#160;are&#160;times&#160;that&#160;a&#160;user&#160;may&#160;want&#160;a&#160;fully<br/>
238 consistent&#160;view&#160;of&#160;the&#160;ISO&#160;without&#160;calling&#160;one&#160;of&#160;the&#160;methods&#160;that<br/>
239 forces&#160;consistency.&#160;&#160;This&#160;method&#160;allows&#160;the&#160;user&#160;to&#160;force&#160;a&#160;consistent<br/>
240 view&#160;of&#160;this&#160;<a href="builtins.html#object">object</a>.<br/>
241 &#160;<br/>
242 Parameters:<br/>
243 &#160;None.<br/>
244 Returns:<br/>
245 &#160;Nothing.</tt></dd></dl>
246
247 <dl><dt><a name="PyCdlib-full_path_from_dirrecord"><strong>full_path_from_dirrecord</strong></a>(self, rec, rockridge=False)</dt><dd><tt>Get&#160;the&#160;absolute&#160;path&#160;of&#160;a&#160;directory&#160;record.<br/>
248 &#160;<br/>
249 Parameters:<br/>
250 &#160;rec&#160;-&#160;The&#160;directory&#160;record&#160;to&#160;get&#160;the&#160;full&#160;path&#160;for.<br/>
251 &#160;rockridge&#160;-&#160;Whether&#160;to&#160;get&#160;the&#160;rock&#160;ridge&#160;full&#160;path.<br/>
252 Returns:<br/>
253 &#160;A&#160;string&#160;representing&#160;the&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.</tt></dd></dl>
254
255 <dl><dt><a name="PyCdlib-get_and_write"><strong>get_and_write</strong></a>(self, iso_path, local_path, blocksize=8192)</dt><dd><tt>(deprecated)&#160;Fetch&#160;a&#160;single&#160;file&#160;from&#160;the&#160;ISO&#160;and&#160;write&#160;it&#160;out&#160;to&#160;the<br/>
256 specified&#160;file.&#160;&#160;Note&#160;that&#160;this&#160;will&#160;overwrite&#160;the&#160;contents&#160;of&#160;the&#160;local<br/>
257 file&#160;if&#160;it&#160;already&#160;exists.&#160;&#160;Also&#160;note&#160;that&#160;'iso_path'&#160;must&#160;be&#160;an<br/>
258 absolute&#160;path&#160;to&#160;the&#160;file.&#160;&#160;Finally,&#160;the&#160;'iso_path'&#160;can&#160;be&#160;an&#160;ISO9660<br/>
259 path,&#160;a&#160;Rock&#160;Ridge&#160;path,&#160;or&#160;a&#160;Joliet&#160;path.&#160;&#160;In&#160;the&#160;case&#160;of&#160;ambiguity,<br/>
260 the&#160;Joliet&#160;path&#160;is&#160;tried&#160;first,&#160;followed&#160;by&#160;the&#160;ISO9660&#160;path,&#160;followed<br/>
261 by&#160;the&#160;Rock&#160;Ridge&#160;path.&#160;&#160;It&#160;is&#160;recommended&#160;to&#160;use&#160;the&#160;get_file_from_iso<br/>
262 API&#160;instead&#160;to&#160;resolve&#160;this&#160;ambiguity.<br/>
263 &#160;<br/>
264 Parameters:<br/>
265 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;to&#160;get&#160;data&#160;from.<br/>
266 &#160;local_path&#160;-&#160;The&#160;local&#160;filename&#160;to&#160;write&#160;the&#160;contents&#160;to.<br/>
267 &#160;blocksize&#160;-&#160;The&#160;blocksize&#160;to&#160;use&#160;when&#160;copying&#160;data;&#160;the&#160;default&#160;is&#160;8192.<br/>
268 Returns:<br/>
269 &#160;Nothing.</tt></dd></dl>
270
271 <dl><dt><a name="PyCdlib-get_and_write_fp"><strong>get_and_write_fp</strong></a>(self, iso_path, outfp, blocksize=8192)</dt><dd><tt>(deprecated)&#160;Fetch&#160;a&#160;single&#160;file&#160;from&#160;the&#160;ISO&#160;and&#160;write&#160;it&#160;out&#160;to&#160;the<br/>
272 file&#160;<a href="builtins.html#object">object</a>.&#160;&#160;Note&#160;that&#160;'iso_path'&#160;must&#160;be&#160;an&#160;absolute&#160;path&#160;to&#160;the&#160;file.<br/>
273 Also&#160;note&#160;that&#160;the&#160;'iso_path'&#160;can&#160;be&#160;an&#160;ISO9660&#160;path,&#160;a&#160;Rock&#160;Ridge&#160;path,<br/>
274 or&#160;a&#160;Joliet&#160;path.&#160;&#160;In&#160;the&#160;case&#160;of&#160;ambiguity,&#160;the&#160;Joliet&#160;path&#160;is&#160;tried<br/>
275 first,&#160;followed&#160;by&#160;the&#160;ISO9660&#160;path,&#160;followed&#160;by&#160;the&#160;Rock&#160;Ridge&#160;path.<br/>
276 It&#160;is&#160;recommend&#160;to&#160;use&#160;the&#160;get_file_from_iso_fp&#160;API&#160;instead&#160;to&#160;resolve<br/>
277 this&#160;ambiguity.<br/>
278 &#160;<br/>
279 Parameters:<br/>
280 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;to&#160;get&#160;data&#160;from.<br/>
281 &#160;outfp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;to&#160;write&#160;data&#160;to.<br/>
282 &#160;blocksize&#160;-&#160;The&#160;blocksize&#160;to&#160;use&#160;when&#160;copying&#160;data;&#160;the&#160;default&#160;is&#160;8192.<br/>
283 Returns:<br/>
284 &#160;Nothing.</tt></dd></dl>
285
286 <dl><dt><a name="PyCdlib-get_entry"><strong>get_entry</strong></a>(self, iso_path, joliet=False)</dt><dd><tt>(deprecated)&#160;Get&#160;the&#160;directory&#160;record&#160;for&#160;a&#160;particular&#160;path.&#160;&#160;It&#160;is<br/>
287 recommended&#160;to&#160;use&#160;the&#160;'get_record'&#160;API&#160;instead.<br/>
288 &#160;<br/>
289 Parameters:<br/>
290 &#160;iso_path&#160;-&#160;The&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;look&#160;up&#160;information&#160;for.<br/>
291 &#160;joliet&#160;-&#160;Whether&#160;to&#160;look&#160;for&#160;the&#160;path&#160;in&#160;the&#160;Joliet&#160;portion&#160;of&#160;the&#160;ISO.<br/>
292 Returns:<br/>
293 &#160;A&#160;dr.DirectoryRecord&#160;<a href="builtins.html#object">object</a>&#160;representing&#160;the&#160;path.</tt></dd></dl>
294
295 <dl><dt><a name="PyCdlib-get_file_from_iso"><strong>get_file_from_iso</strong></a>(self, local_path, **kwargs)</dt><dd><tt>Fetch&#160;a&#160;single&#160;file&#160;from&#160;the&#160;ISO&#160;and&#160;write&#160;it&#160;out&#160;to&#160;a&#160;local&#160;file.<br/>
296 &#160;<br/>
297 Parameters:<br/>
298 &#160;local_path&#160;-&#160;The&#160;local&#160;file&#160;to&#160;write&#160;to.<br/>
299 &#160;blocksize&#160;-&#160;The&#160;number&#160;of&#160;bytes&#160;in&#160;each&#160;transfer.<br/>
300 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;ISO9660&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
301 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;rr_path,&#160;joliet_path,&#160;and&#160;udf_path).<br/>
302 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
303 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;iso_path,&#160;joliet_path,&#160;and&#160;udf_path).<br/>
304 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
305 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;iso_path,&#160;rr_path,&#160;and&#160;udf_path).<br/>
306 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive&#160;with<br/>
307 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;iso_path,&#160;rr_path,&#160;and&#160;joliet_path).<br/>
308 Returns:<br/>
309 &#160;Nothing.</tt></dd></dl>
310
311 <dl><dt><a name="PyCdlib-get_file_from_iso_fp"><strong>get_file_from_iso_fp</strong></a>(self, outfp, **kwargs)</dt><dd><tt>Fetch&#160;a&#160;single&#160;file&#160;from&#160;the&#160;ISO&#160;and&#160;write&#160;it&#160;out&#160;to&#160;the&#160;file&#160;<a href="builtins.html#object">object</a>.<br/>
312 &#160;<br/>
313 Parameters:<br/>
314 &#160;outfp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;to&#160;write&#160;data&#160;to.<br/>
315 &#160;blocksize&#160;-&#160;The&#160;number&#160;of&#160;bytes&#160;in&#160;each&#160;transfer.<br/>
316 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;ISO9660&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
317 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;rr_path,&#160;joliet_path,&#160;and&#160;udf_path).<br/>
318 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
319 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;iso_path,&#160;joliet_path,&#160;and&#160;udf_path).<br/>
320 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive<br/>
321 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;with&#160;iso_path,&#160;rr_path,&#160;and&#160;udf_path).<br/>
322 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;to&#160;lookup&#160;on&#160;the&#160;ISO&#160;(exclusive&#160;with<br/>
323 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;iso_path,&#160;rr_path,&#160;and&#160;joliet_path).<br/>
324 Returns:<br/>
325 &#160;Nothing.</tt></dd></dl>
326
327 <dl><dt><a name="PyCdlib-get_iso9660_facade"><strong>get_iso9660_facade</strong></a>(self)</dt><dd><tt>Return&#160;a&#160;'facade'&#160;that&#160;simplifies&#160;some&#160;of&#160;the&#160;complexities&#160;of&#160;the<br/>
328 <a href="#PyCdlib">PyCdlib</a>&#160;class,&#160;while&#160;giving&#160;up&#160;some&#160;of&#160;the&#160;full&#160;power.&#160;&#160;This&#160;facade<br/>
329 only&#160;allows&#160;manipulation&#160;of&#160;the&#160;ISO9660&#160;portions&#160;of&#160;the&#160;ISO.<br/>
330 &#160;<br/>
331 Parameters:<br/>
332 &#160;None.<br/>
333 Returns:<br/>
334 &#160;A&#160;PyCdlibISO9660&#160;<a href="builtins.html#object">object</a>&#160;that&#160;can&#160;be&#160;used&#160;to&#160;interact&#160;with&#160;the&#160;ISO.</tt></dd></dl>
335
336 <dl><dt><a name="PyCdlib-get_joliet_facade"><strong>get_joliet_facade</strong></a>(self)</dt><dd><tt>Return&#160;a&#160;'facade'&#160;that&#160;simplifies&#160;some&#160;of&#160;the&#160;complexities&#160;of&#160;the<br/>
337 <a href="#PyCdlib">PyCdlib</a>&#160;class,&#160;while&#160;giving&#160;up&#160;some&#160;of&#160;the&#160;full&#160;power.&#160;&#160;This&#160;facade<br/>
338 only&#160;allows&#160;manipulation&#160;of&#160;the&#160;Joliet&#160;portions&#160;of&#160;the&#160;ISO.<br/>
339 &#160;<br/>
340 Parameters:<br/>
341 &#160;None.<br/>
342 Returns:<br/>
343 &#160;A&#160;PyCdlibJoliet&#160;<a href="builtins.html#object">object</a>&#160;that&#160;can&#160;be&#160;used&#160;to&#160;interact&#160;with&#160;the&#160;ISO.</tt></dd></dl>
344
345 <dl><dt><a name="PyCdlib-get_record"><strong>get_record</strong></a>(self, **kwargs)</dt><dd><tt>Get&#160;the&#160;directory&#160;record&#160;for&#160;a&#160;particular&#160;path.<br/>
346 &#160;<br/>
347 Parameters:<br/>
348 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;path&#160;on&#160;the&#160;ISO9660&#160;filesystem&#160;to&#160;get&#160;the<br/>
349 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;record&#160;for.<br/>
350 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;path&#160;on&#160;the&#160;Rock&#160;Ridge&#160;filesystem&#160;to&#160;get&#160;the<br/>
351 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;record&#160;for.<br/>
352 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;path&#160;on&#160;the&#160;Joliet&#160;filesystem&#160;to&#160;get&#160;the<br/>
353 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;record&#160;for.<br/>
354 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;path&#160;on&#160;the&#160;UDF&#160;filesystem&#160;to&#160;get&#160;the&#160;record<br/>
355 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;for.<br/>
356 Returns:<br/>
357 &#160;An&#160;<a href="builtins.html#object">object</a>&#160;that&#160;represents&#160;the&#160;path.&#160;&#160;This&#160;may&#160;be&#160;a&#160;dr.DirectoryRecord<br/>
358 &#160;<a href="builtins.html#object">object</a>&#160;(in&#160;the&#160;cases&#160;of&#160;iso_path,&#160;rr_path,&#160;or&#160;joliet_path),&#160;or&#160;a<br/>
359 &#160;udf.UDFFileEntry&#160;<a href="builtins.html#object">object</a>&#160;(in&#160;the&#160;case&#160;of&#160;udf_path).</tt></dd></dl>
360
361 <dl><dt><a name="PyCdlib-get_rock_ridge_facade"><strong>get_rock_ridge_facade</strong></a>(self)</dt><dd><tt>Return&#160;a&#160;'facade'&#160;that&#160;simplifies&#160;some&#160;of&#160;the&#160;complexities&#160;of&#160;the<br/>
362 <a href="#PyCdlib">PyCdlib</a>&#160;class,&#160;while&#160;giving&#160;up&#160;some&#160;of&#160;the&#160;full&#160;power.&#160;&#160;This&#160;facade<br/>
363 only&#160;allows&#160;manipulation&#160;of&#160;the&#160;Rock&#160;Ridge&#160;portions&#160;of&#160;the&#160;ISO.<br/>
364 &#160;<br/>
365 Parameters:<br/>
366 &#160;None.<br/>
367 Returns:<br/>
368 &#160;A&#160;PyCdlibRockRidge&#160;<a href="builtins.html#object">object</a>&#160;that&#160;can&#160;be&#160;used&#160;to&#160;interact&#160;with&#160;the&#160;ISO.</tt></dd></dl>
369
370 <dl><dt><a name="PyCdlib-get_udf_facade"><strong>get_udf_facade</strong></a>(self)</dt><dd><tt>Return&#160;a&#160;'facade'&#160;that&#160;simplifies&#160;some&#160;of&#160;the&#160;complexities&#160;of&#160;the<br/>
371 <a href="#PyCdlib">PyCdlib</a>&#160;class,&#160;while&#160;giving&#160;up&#160;some&#160;of&#160;the&#160;full&#160;power.&#160;&#160;This&#160;facade<br/>
372 only&#160;allows&#160;manipulation&#160;of&#160;the&#160;UDF&#160;portions&#160;of&#160;the&#160;ISO.<br/>
373 &#160;<br/>
374 Parameters:<br/>
375 &#160;None.<br/>
376 Returns:<br/>
377 &#160;A&#160;PyCdlibUDF&#160;<a href="builtins.html#object">object</a>&#160;that&#160;can&#160;be&#160;used&#160;to&#160;interact&#160;with&#160;the&#160;ISO.</tt></dd></dl>
378
379 <dl><dt><a name="PyCdlib-has_joliet"><strong>has_joliet</strong></a>(self)</dt><dd><tt>Returns&#160;whether&#160;this&#160;ISO&#160;has&#160;Joliet&#160;extensions.<br/>
380 &#160;<br/>
381 Parameters:<br/>
382 &#160;None.<br/>
383 Returns:<br/>
384 &#160;True&#160;if&#160;this&#160;ISO&#160;has&#160;Joliet,&#160;False&#160;otherwise.</tt></dd></dl>
385
386 <dl><dt><a name="PyCdlib-has_rock_ridge"><strong>has_rock_ridge</strong></a>(self)</dt><dd><tt>Returns&#160;whether&#160;this&#160;ISO&#160;has&#160;Rock&#160;Ridge&#160;extensions.<br/>
387 &#160;<br/>
388 Parameters:<br/>
389 &#160;None.<br/>
390 Returns:<br/>
391 &#160;True&#160;if&#160;this&#160;ISO&#160;has&#160;Rock&#160;Ridge&#160;extensions,&#160;False&#160;otherwise.</tt></dd></dl>
392
393 <dl><dt><a name="PyCdlib-has_udf"><strong>has_udf</strong></a>(self)</dt><dd><tt>Returns&#160;whether&#160;this&#160;ISO&#160;has&#160;UDF&#160;extensions.<br/>
394 &#160;<br/>
395 Parameters:<br/>
396 &#160;None.<br/>
397 Returns:<br/>
398 &#160;True&#160;if&#160;this&#160;ISO&#160;has&#160;UDF,&#160;False&#160;otherwise.</tt></dd></dl>
399
400 <dl><dt><a name="PyCdlib-list_children"><strong>list_children</strong></a>(self, **kwargs)</dt><dd><tt>Generate&#160;a&#160;list&#160;of&#160;all&#160;of&#160;the&#160;file/directory&#160;objects&#160;in&#160;the<br/>
401 specified&#160;location&#160;on&#160;the&#160;ISO.<br/>
402 &#160;<br/>
403 Parameters:<br/>
404 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;list&#160;the&#160;children&#160;for.<br/>
405 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;list&#160;the&#160;children&#160;for.<br/>
406 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;list&#160;the&#160;children&#160;for.<br/>
407 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;list&#160;the&#160;children&#160;for.<br/>
408 Yields:<br/>
409 &#160;Children&#160;of&#160;this&#160;path.<br/>
410 Returns:<br/>
411 &#160;Nothing.</tt></dd></dl>
412
413 <dl><dt><a name="PyCdlib-list_dir"><strong>list_dir</strong></a>(self, iso_path, joliet=False)</dt><dd><tt>(deprecated)&#160;Generate&#160;a&#160;list&#160;of&#160;all&#160;of&#160;the&#160;file/directory&#160;objects&#160;in&#160;the<br/>
414 specified&#160;location&#160;on&#160;the&#160;ISO.&#160;&#160;It&#160;is&#160;recommended&#160;to&#160;use&#160;the<br/>
415 'list_children'&#160;API&#160;instead.<br/>
416 &#160;<br/>
417 Parameters:<br/>
418 &#160;iso_path&#160;-&#160;The&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;look&#160;up&#160;information&#160;for.<br/>
419 &#160;joliet&#160;-&#160;Whether&#160;to&#160;look&#160;for&#160;the&#160;path&#160;in&#160;the&#160;Joliet&#160;portion&#160;of&#160;the&#160;ISO.<br/>
420 Yields:<br/>
421 &#160;Children&#160;of&#160;this&#160;path.<br/>
422 Returns:<br/>
423 &#160;Nothing.</tt></dd></dl>
424
425 <dl><dt><a name="PyCdlib-modify_file_in_place"><strong>modify_file_in_place</strong></a>(self, fp, length, iso_path, rr_name=None, joliet_path=None, udf_path=None)</dt><dd><tt>An&#160;API&#160;to&#160;modify&#160;a&#160;file&#160;in&#160;place&#160;on&#160;the&#160;ISO.&#160;&#160;This&#160;can&#160;be&#160;extremely&#160;fast<br/>
426 (much&#160;faster&#160;than&#160;calling&#160;the&#160;write&#160;method),&#160;but&#160;has&#160;many&#160;restrictions.<br/>
427 &#160;<br/>
428 1.&#160;&#160;The&#160;original&#160;ISO&#160;file&#160;pointer&#160;must&#160;have&#160;been&#160;opened&#160;for&#160;reading<br/>
429 &#160;&#160;&#160;&#160;and&#160;writing.<br/>
430 2.&#160;&#160;Only&#160;an&#160;existing&#160;*file*&#160;can&#160;be&#160;modified;&#160;directories&#160;cannot&#160;be<br/>
431 &#160;&#160;&#160;&#160;changed.<br/>
432 3.&#160;&#160;Only&#160;an&#160;existing&#160;file&#160;can&#160;be&#160;*modified*;&#160;no&#160;new&#160;files&#160;can&#160;be&#160;added<br/>
433 &#160;&#160;&#160;&#160;or&#160;removed.<br/>
434 4.&#160;&#160;The&#160;new&#160;file&#160;contents&#160;must&#160;use&#160;the&#160;same&#160;number&#160;of&#160;extents&#160;(typically<br/>
435 &#160;&#160;&#160;&#160;2048&#160;bytes)&#160;as&#160;the&#160;old&#160;file&#160;contents.&#160;&#160;If&#160;using&#160;this&#160;API&#160;to&#160;shrink<br/>
436 &#160;&#160;&#160;&#160;a&#160;file,&#160;this&#160;is&#160;usually&#160;easy&#160;since&#160;the&#160;new&#160;contents&#160;can&#160;be&#160;padded<br/>
437 &#160;&#160;&#160;&#160;out&#160;with&#160;zeros&#160;or&#160;newlines&#160;to&#160;meet&#160;the&#160;requirement.&#160;&#160;If&#160;using&#160;this<br/>
438 &#160;&#160;&#160;&#160;API&#160;to&#160;grow&#160;a&#160;file,&#160;the&#160;new&#160;contents&#160;can&#160;only&#160;grow&#160;up&#160;to&#160;the&#160;next<br/>
439 &#160;&#160;&#160;&#160;extent&#160;boundary.<br/>
440 &#160;<br/>
441 Unlike&#160;all&#160;other&#160;APIs&#160;in&#160;<a href="#PyCdlib">PyCdlib</a>,&#160;this&#160;API&#160;actually&#160;modifies&#160;the<br/>
442 originally&#160;opened&#160;on-disk&#160;file,&#160;so&#160;use&#160;it&#160;with&#160;caution.<br/>
443 &#160;<br/>
444 Parameters:<br/>
445 &#160;fp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;to&#160;use&#160;for&#160;the&#160;contents&#160;of&#160;the&#160;new&#160;file.<br/>
446 &#160;length&#160;-&#160;The&#160;length&#160;of&#160;the&#160;new&#160;data&#160;for&#160;the&#160;file.<br/>
447 &#160;iso_path&#160;-&#160;The&#160;ISO9660&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
448 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
449 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
450 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;absolute&#160;path&#160;to&#160;the&#160;file&#160;destination&#160;on&#160;the&#160;ISO.<br/>
451 Returns:<br/>
452 &#160;Nothing.</tt></dd></dl>
453
454 <dl><dt><a name="PyCdlib-new"><strong>new</strong></a>(self, interchange_level=1, sys_ident='', vol_ident='', set_size=1, seqnum=1, log_block_size=2048, vol_set_ident=' ', pub_ident_str='', preparer_ident_str='', app_ident_str='', copyright_file='', abstract_file='', bibli_file='', vol_expire_date=None, app_use='', joliet=None, rock_ridge=None, xa=False, udf=None)</dt><dd><tt>Create&#160;a&#160;new&#160;ISO&#160;from&#160;scratch.<br/>
455 &#160;<br/>
456 Parameters:<br/>
457 &#160;interchange_level&#160;-&#160;The&#160;ISO9660&#160;interchange&#160;level&#160;to&#160;use;&#160;this&#160;dictates<br/>
458 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;the&#160;rules&#160;on&#160;the&#160;names&#160;of&#160;files.&#160;&#160;Levels&#160;1,&#160;2,&#160;3,<br/>
459 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;and&#160;4&#160;are&#160;supported.&#160;&#160;Level&#160;1&#160;is&#160;the&#160;most<br/>
460 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;conservative,&#160;and&#160;is&#160;the&#160;default,&#160;but&#160;level&#160;3&#160;is<br/>
461 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;recommended.<br/>
462 &#160;sys_ident&#160;-&#160;The&#160;system&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
463 &#160;vol_ident&#160;-&#160;The&#160;volume&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
464 &#160;set_size&#160;-&#160;The&#160;size&#160;of&#160;the&#160;set&#160;of&#160;ISOs&#160;this&#160;ISO&#160;is&#160;a&#160;part&#160;of.<br/>
465 &#160;seqnum&#160;-&#160;The&#160;sequence&#160;number&#160;of&#160;the&#160;set&#160;of&#160;this&#160;ISO.<br/>
466 &#160;log_block_size&#160;-&#160;The&#160;logical&#160;block&#160;size&#160;to&#160;use&#160;for&#160;the&#160;ISO.&#160;&#160;While&#160;ISO9660<br/>
467 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;technically&#160;supports&#160;sizes&#160;other&#160;than&#160;2048&#160;(the&#160;default),<br/>
468 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;this&#160;almost&#160;certainly&#160;doesn't&#160;work.<br/>
469 &#160;vol_set_ident&#160;-&#160;The&#160;volume&#160;set&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
470 &#160;pub_ident_str&#160;-&#160;The&#160;publisher&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
471 &#160;preparer_ident_str&#160;-&#160;The&#160;preparer&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
472 &#160;app_ident_str&#160;-&#160;The&#160;application&#160;identification&#160;string&#160;to&#160;use&#160;on&#160;the&#160;new&#160;ISO.<br/>
473 &#160;copyright_file&#160;-&#160;The&#160;name&#160;of&#160;a&#160;file&#160;at&#160;the&#160;root&#160;of&#160;the&#160;ISO&#160;to&#160;use&#160;as&#160;the<br/>
474 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;copyright&#160;file.<br/>
475 &#160;abstract_file&#160;-&#160;The&#160;name&#160;of&#160;a&#160;file&#160;at&#160;the&#160;root&#160;of&#160;the&#160;ISO&#160;to&#160;use&#160;as&#160;the<br/>
476 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;abstract&#160;file.<br/>
477 &#160;bibli_file&#160;-&#160;The&#160;name&#160;of&#160;a&#160;file&#160;at&#160;the&#160;root&#160;of&#160;the&#160;ISO&#160;to&#160;use&#160;as&#160;the<br/>
478 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;bibliographic&#160;file.<br/>
479 &#160;vol_expire_date&#160;-&#160;The&#160;date&#160;that&#160;this&#160;ISO&#160;will&#160;expire&#160;at.<br/>
480 &#160;app_use&#160;-&#160;Arbitrary&#160;data&#160;that&#160;the&#160;application&#160;can&#160;stuff&#160;into&#160;the&#160;primary<br/>
481 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;volume&#160;descriptor&#160;of&#160;this&#160;ISO.<br/>
482 &#160;joliet&#160;-&#160;A&#160;integer&#160;that&#160;can&#160;have&#160;the&#160;value&#160;1,&#160;2,&#160;or&#160;3&#160;for&#160;Joliet<br/>
483 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;levels&#160;1,&#160;2,&#160;or&#160;3&#160;(3&#160;is&#160;by&#160;far&#160;the&#160;most&#160;common),&#160;or&#160;None&#160;for<br/>
484 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;no&#160;Joliet&#160;support&#160;(the&#160;default).&#160;&#160;For&#160;legacy&#160;reasons,&#160;this<br/>
485 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;parameter&#160;also&#160;accepts&#160;a&#160;boolean,&#160;where&#160;the&#160;value&#160;of&#160;'False'<br/>
486 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;means&#160;no&#160;Joliet&#160;and&#160;a&#160;value&#160;of&#160;'True'&#160;means&#160;level&#160;3.<br/>
487 &#160;rock_ridge&#160;-&#160;Whether&#160;to&#160;make&#160;this&#160;ISO&#160;have&#160;the&#160;Rock&#160;Ridge&#160;extensions&#160;or<br/>
488 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;not.&#160;&#160;The&#160;default&#160;value&#160;of&#160;None&#160;does&#160;not&#160;add&#160;Rock&#160;Ridge<br/>
489 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;extensions.&#160;&#160;A&#160;string&#160;value&#160;of&#160;'1.09',&#160;'1.10',&#160;or&#160;'1.12'<br/>
490 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;adds&#160;the&#160;specified&#160;Rock&#160;Ridge&#160;version&#160;to&#160;the&#160;ISO.&#160;&#160;If<br/>
491 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;unsure,&#160;pass&#160;'1.09'&#160;to&#160;ensure&#160;maximum&#160;compatibility.<br/>
492 &#160;xa&#160;-&#160;Whether&#160;to&#160;add&#160;the&#160;ISO9660&#160;Extended&#160;Attribute&#160;extensions&#160;to&#160;this<br/>
493 &#160;&#160;&#160;&#160;&#160;&#160;ISO.&#160;&#160;The&#160;default&#160;is&#160;False.<br/>
494 &#160;udf&#160;-&#160;Whether&#160;to&#160;add&#160;UDF&#160;support&#160;to&#160;this&#160;ISO.&#160;&#160;If&#160;it&#160;is&#160;None&#160;(the<br/>
495 &#160;&#160;&#160;&#160;&#160;&#160;&#160;default),&#160;no&#160;UDF&#160;support&#160;is&#160;added.&#160;&#160;If&#160;it&#160;is&#160;"2.60",&#160;version&#160;2.60<br/>
496 &#160;&#160;&#160;&#160;&#160;&#160;&#160;of&#160;the&#160;UDF&#160;spec&#160;is&#160;used.&#160;&#160;All&#160;other&#160;values&#160;are&#160;disallowed.<br/>
497 Returns:<br/>
498 &#160;Nothing.</tt></dd></dl>
499
500 <dl><dt><a name="PyCdlib-open"><strong>open</strong></a>(self, filename, mode='rb')</dt><dd><tt>Open&#160;up&#160;an&#160;existing&#160;ISO&#160;for&#160;inspection&#160;and&#160;modification.<br/>
501 &#160;<br/>
502 Parameters:<br/>
503 &#160;filename&#160;-&#160;The&#160;filename&#160;containing&#160;the&#160;ISO&#160;to&#160;open&#160;up.<br/>
504 &#160;mode&#160;-&#160;The&#160;mode&#160;to&#160;use&#160;when&#160;opening&#160;the&#160;ISO&#160;file;&#160;the&#160;default&#160;is&#160;'rb'.<br/>
505 Returns:<br/>
506 &#160;Nothing.</tt></dd></dl>
507
508 <dl><dt><a name="PyCdlib-open_file_from_iso"><strong>open_file_from_iso</strong></a>(self, **kwargs)</dt><dd><tt>Open&#160;a&#160;file&#160;for&#160;reading&#160;in&#160;a&#160;context&#160;manager.&#160;&#160;This&#160;allows&#160;the&#160;user&#160;to<br/>
509 operate&#160;on&#160;the&#160;file&#160;in&#160;user-defined&#160;chunks&#160;(utilizing&#160;the&#160;read()&#160;method<br/>
510 of&#160;the&#160;returned&#160;context&#160;manager).<br/>
511 &#160;<br/>
512 Parameters:<br/>
513 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;ISO&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
514 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
515 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
516 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;to&#160;the&#160;file&#160;on&#160;the&#160;ISO.<br/>
517 Returns:<br/>
518 &#160;A&#160;PyCdlibIO&#160;<a href="builtins.html#object">object</a>&#160;allowing&#160;access&#160;to&#160;the&#160;file.</tt></dd></dl>
519
520 <dl><dt><a name="PyCdlib-open_fp"><strong>open_fp</strong></a>(self, fp)</dt><dd><tt>Open&#160;up&#160;an&#160;existing&#160;ISO&#160;for&#160;inspection&#160;and&#160;modification.&#160;&#160;Note&#160;that&#160;the<br/>
521 file&#160;<a href="builtins.html#object">object</a>&#160;passed&#160;in&#160;here&#160;must&#160;stay&#160;open&#160;for&#160;the&#160;lifetime&#160;of&#160;this<br/>
522 <a href="builtins.html#object">object</a>,&#160;as&#160;the&#160;<a href="#PyCdlib">PyCdlib</a>&#160;class&#160;uses&#160;it&#160;internally&#160;to&#160;do&#160;writing&#160;and&#160;reading<br/>
523 operations.&#160;&#160;To&#160;have&#160;<a href="#PyCdlib">PyCdlib</a>&#160;manage&#160;this&#160;automatically,&#160;use&#160;'open'<br/>
524 instead.<br/>
525 &#160;<br/>
526 Parameters:<br/>
527 &#160;fp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;containing&#160;the&#160;ISO&#160;to&#160;open&#160;up.<br/>
528 Returns:<br/>
529 &#160;Nothing.</tt></dd></dl>
530
531 <dl><dt><a name="PyCdlib-rm_directory"><strong>rm_directory</strong></a>(self, iso_path=None, rr_name=None, joliet_path=None, udf_path=None)</dt><dd><tt>Remove&#160;a&#160;directory&#160;from&#160;the&#160;ISO.&#160;&#160;The&#160;directory&#160;must&#160;be&#160;empty.<br/>
532 &#160;<br/>
533 Parameters:<br/>
534 &#160;iso_path&#160;-&#160;The&#160;path&#160;to&#160;the&#160;directory&#160;to&#160;remove.<br/>
535 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;directory&#160;to&#160;remove.<br/>
536 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;to&#160;the&#160;directory&#160;to&#160;remove.<br/>
537 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;absolute&#160;path&#160;to&#160;the&#160;directory&#160;to&#160;remove.<br/>
538 Returns:<br/>
539 &#160;Nothing.</tt></dd></dl>
540
541 <dl><dt><a name="PyCdlib-rm_eltorito"><strong>rm_eltorito</strong></a>(self)</dt><dd><tt>Remove&#160;the&#160;El&#160;Torito&#160;boot&#160;record&#160;(and&#160;Boot&#160;Catalog)&#160;from&#160;the&#160;ISO.<br/>
542 &#160;<br/>
543 Parameters:<br/>
544 &#160;None.<br/>
545 Returns:<br/>
546 &#160;Nothing.</tt></dd></dl>
547
548 <dl><dt><a name="PyCdlib-rm_file"><strong>rm_file</strong></a>(self, iso_path=None, rr_name=None, joliet_path=None, udf_path=None)</dt><dd><tt>Remove&#160;a&#160;file&#160;from&#160;the&#160;ISO.&#160;&#160;This&#160;removes&#160;the&#160;data&#160;and&#160;the&#160;listing&#160;of<br/>
549 the&#160;file&#160;from&#160;all&#160;contexts,&#160;even&#160;when&#160;only&#160;one&#160;path&#160;is&#160;given&#160;(to&#160;only<br/>
550 remove&#160;it&#160;from&#160;a&#160;single&#160;context,&#160;use&#160;<a href="#PyCdlib-rm_hard_link">rm_hard_link</a>()&#160;instead).&#160;&#160;Due&#160;to<br/>
551 some&#160;complexities&#160;of&#160;the&#160;ISO&#160;format,&#160;removal&#160;of&#160;zero-byte&#160;files&#160;from&#160;all<br/>
552 contexts&#160;does&#160;not&#160;automatically&#160;happen,&#160;so&#160;this&#160;method&#160;may&#160;need&#160;to&#160;be<br/>
553 called&#160;more&#160;than&#160;once&#160;for&#160;zero-byte&#160;files.<br/>
554 &#160;<br/>
555 Parameters:<br/>
556 &#160;iso_path&#160;-&#160;The&#160;path&#160;to&#160;the&#160;file&#160;to&#160;remove.<br/>
557 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;of&#160;the&#160;file&#160;to&#160;remove.<br/>
558 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;to&#160;the&#160;file&#160;to&#160;remove.<br/>
559 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;path&#160;to&#160;the&#160;file&#160;to&#160;remove.<br/>
560 Returns:<br/>
561 &#160;Nothing.</tt></dd></dl>
562
563 <dl><dt><a name="PyCdlib-rm_hard_link"><strong>rm_hard_link</strong></a>(self, iso_path=None, joliet_path=None, udf_path=None)</dt><dd><tt>Remove&#160;a&#160;hard&#160;link&#160;from&#160;the&#160;ISO.&#160;&#160;If&#160;the&#160;number&#160;of&#160;links&#160;to&#160;a&#160;piece&#160;of<br/>
564 data&#160;drops&#160;to&#160;zero,&#160;then&#160;the&#160;contents&#160;will&#160;be&#160;removed&#160;from&#160;the&#160;ISO.<br/>
565 This&#160;can&#160;be&#160;thought&#160;of&#160;as&#160;a&#160;lower-level&#160;interface&#160;to&#160;<a href="#PyCdlib-rm_file">rm_file</a>().&#160;&#160;Either<br/>
566 an&#160;ISO9660&#160;path&#160;or&#160;a&#160;Joliet&#160;path&#160;must&#160;be&#160;passed&#160;to&#160;this&#160;API,&#160;but&#160;not<br/>
567 both.&#160;&#160;Thus,&#160;this&#160;interface&#160;can&#160;be&#160;used&#160;to&#160;hide&#160;files&#160;from&#160;either&#160;the<br/>
568 ISO9660&#160;filesystem,&#160;the&#160;Joliet&#160;filesystem,&#160;or&#160;both&#160;(if&#160;there&#160;is&#160;another<br/>
569 reference&#160;to&#160;the&#160;data&#160;on&#160;the&#160;ISO,&#160;such&#160;as&#160;in&#160;El&#160;Torito).&#160;&#160;Note&#160;that&#160;this<br/>
570 is&#160;an&#160;advanced&#160;API,&#160;so&#160;using&#160;it&#160;in&#160;combination&#160;with&#160;the&#160;higher-level&#160;APIs<br/>
571 (like&#160;<a href="#PyCdlib-rm_file">rm_file</a>())&#160;may&#160;result&#160;in&#160;unexpected&#160;behavior.&#160;&#160;Once&#160;this&#160;API&#160;has<br/>
572 been&#160;used,&#160;this&#160;API&#160;and&#160;<a href="#PyCdlib-add_hard_link">add_hard_link</a>()&#160;should&#160;be&#160;preferred&#160;over<br/>
573 <a href="#PyCdlib-rm_file">rm_file</a>()&#160;and&#160;<a href="#PyCdlib-add_file">add_file</a>().<br/>
574 &#160;<br/>
575 Parameters:<br/>
576 &#160;iso_path&#160;-&#160;The&#160;ISO&#160;link&#160;path&#160;to&#160;remove.<br/>
577 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;link&#160;path&#160;to&#160;remove.<br/>
578 &#160;udf_path&#160;-&#160;The&#160;UDF&#160;link&#160;path&#160;to&#160;remove.<br/>
579 Returns:<br/>
580 &#160;Nothing.</tt></dd></dl>
581
582 <dl><dt><a name="PyCdlib-rm_isohybrid"><strong>rm_isohybrid</strong></a>(self)</dt><dd><tt>Remove&#160;the&#160;'hybridization'&#160;of&#160;an&#160;ISO,&#160;making&#160;it&#160;a&#160;traditional&#160;ISO&#160;again.<br/>
583 This&#160;means&#160;the&#160;ISO&#160;will&#160;no&#160;longer&#160;be&#160;able&#160;to&#160;be&#160;copied&#160;and&#160;booted&#160;off<br/>
584 of&#160;traditional&#160;media&#160;(like&#160;USB&#160;sticks).<br/>
585 &#160;<br/>
586 Parameters:<br/>
587 &#160;None.<br/>
588 Returns:<br/>
589 &#160;Nothing.</tt></dd></dl>
590
591 <dl><dt><a name="PyCdlib-rm_joliet_directory"><strong>rm_joliet_directory</strong></a>(self, joliet_path)</dt><dd><tt>(deprecated)&#160;Remove&#160;a&#160;Joliet&#160;directory&#160;from&#160;the&#160;ISO.&#160;&#160;It&#160;is&#160;recommended<br/>
592 to&#160;use&#160;the&#160;'joliet_path'&#160;parameter&#160;to&#160;'rm_directory'&#160;instead.<br/>
593 &#160;<br/>
594 Parameters:<br/>
595 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;to&#160;the&#160;directory&#160;to&#160;remove.<br/>
596 Returns:<br/>
597 &#160;Nothing.</tt></dd></dl>
598
599 <dl><dt><a name="PyCdlib-set_hidden"><strong>set_hidden</strong></a>(self, iso_path=None, rr_path=None, joliet_path=None)</dt><dd><tt>Set&#160;the&#160;ISO9660&#160;hidden&#160;attribute&#160;on&#160;a&#160;file&#160;or&#160;directory.&#160;&#160;This&#160;will<br/>
600 cause&#160;the&#160;file&#160;or&#160;directory&#160;not&#160;to&#160;show&#160;up&#160;when&#160;listing&#160;entries&#160;on&#160;the<br/>
601 ISO.&#160;&#160;Exactly&#160;one&#160;of&#160;iso_path,&#160;rr_path,&#160;or&#160;joliet_path&#160;must&#160;be&#160;specified.<br/>
602 &#160;<br/>
603 Parameters:<br/>
604 &#160;iso_path&#160;-&#160;The&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;set&#160;the&#160;hidden&#160;bit&#160;on.<br/>
605 &#160;rr_path&#160;-&#160;The&#160;Rock&#160;Ridge&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;set&#160;the&#160;hidden&#160;bit&#160;on.<br/>
606 &#160;joliet_path&#160;-&#160;The&#160;Joliet&#160;path&#160;on&#160;the&#160;ISO&#160;to&#160;set&#160;the&#160;hidden&#160;bit&#160;on.<br/>
607 Returns:<br/>
608 &#160;Nothing.</tt></dd></dl>
609
610 <dl><dt><a name="PyCdlib-set_relocated_name"><strong>set_relocated_name</strong></a>(self, name, rr_name)</dt><dd><tt>Set&#160;the&#160;name&#160;of&#160;the&#160;relocated&#160;directory&#160;on&#160;a&#160;Rock&#160;Ridge&#160;ISO.&#160;&#160;The&#160;ISO<br/>
611 must&#160;be&#160;a&#160;Rock&#160;Ridge&#160;one,&#160;and&#160;must&#160;not&#160;have&#160;previously&#160;had&#160;the&#160;relocated<br/>
612 name&#160;set.<br/>
613 &#160;<br/>
614 Parameters:<br/>
615 &#160;name&#160;-&#160;The&#160;name&#160;for&#160;a&#160;relocated&#160;directory.<br/>
616 &#160;rr_name&#160;-&#160;The&#160;Rock&#160;Ridge&#160;name&#160;for&#160;a&#160;relocated&#160;directory.<br/>
617 Returns:<br/>
618 &#160;Nothing.</tt></dd></dl>
619
620 <dl><dt><a name="PyCdlib-walk"><strong>walk</strong></a>(self, **kwargs)</dt><dd><tt>Walk&#160;the&#160;entries&#160;on&#160;the&#160;ISO,&#160;starting&#160;at&#160;the&#160;given&#160;path.&#160;&#160;One,&#160;and&#160;only<br/>
621 one,&#160;of&#160;iso_path,&#160;rr_path,&#160;joliet_path,&#160;and&#160;udf_path&#160;is&#160;allowed.<br/>
622 Similar&#160;to&#160;os.<a href="#PyCdlib-walk">walk</a>(),&#160;yield&#160;a&#160;3-tuple&#160;of&#160;(path-to-here,&#160;dirlist,&#160;filelist)<br/>
623 for&#160;each&#160;directory&#160;level.<br/>
624 &#160;<br/>
625 Parameters:<br/>
626 &#160;iso_path&#160;-&#160;The&#160;absolute&#160;ISO&#160;path&#160;to&#160;the&#160;starting&#160;entry&#160;on&#160;the&#160;ISO.<br/>
627 &#160;rr_path&#160;-&#160;The&#160;absolute&#160;Rock&#160;Ridge&#160;path&#160;to&#160;the&#160;starting&#160;entry&#160;on&#160;the&#160;ISO.<br/>
628 &#160;joliet_path&#160;-&#160;The&#160;absolute&#160;Joliet&#160;path&#160;to&#160;the&#160;starting&#160;entry&#160;on&#160;the&#160;ISO.<br/>
629 &#160;udf_path&#160;-&#160;The&#160;absolute&#160;UDF&#160;path&#160;to&#160;the&#160;starting&#160;entry&#160;on&#160;the&#160;ISO.<br/>
630 Yields:<br/>
631 &#160;3-tuples&#160;of&#160;(path-to-here,&#160;dirlist,&#160;filelist)<br/>
632 Returns:<br/>
633 &#160;Nothing.</tt></dd></dl>
634
635 <dl><dt><a name="PyCdlib-write"><strong>write</strong></a>(self, filename, blocksize=32768, progress_cb=None, progress_opaque=None)</dt><dd><tt>Write&#160;a&#160;properly&#160;formatted&#160;ISO&#160;out&#160;to&#160;the&#160;filename&#160;passed&#160;in.&#160;&#160;This<br/>
636 also&#160;goes&#160;by&#160;the&#160;name&#160;of&#160;'mastering'.<br/>
637 &#160;<br/>
638 Parameters:<br/>
639 &#160;filename&#160;-&#160;The&#160;filename&#160;to&#160;write&#160;the&#160;data&#160;to.<br/>
640 &#160;blocksize&#160;-&#160;The&#160;blocksize&#160;to&#160;use&#160;when&#160;copying&#160;data;&#160;the&#160;default&#160;is&#160;32768.<br/>
641 &#160;progress_cb&#160;-&#160;If&#160;not&#160;None,&#160;a&#160;function&#160;to&#160;call&#160;as&#160;the&#160;write&#160;call&#160;does&#160;its<br/>
642 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;work.&#160;&#160;The&#160;callback&#160;function&#160;must&#160;have&#160;a&#160;signature&#160;of:<br/>
643 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;def&#160;func(done,&#160;total,&#160;opaque).<br/>
644 &#160;progress_opaque&#160;-&#160;User&#160;data&#160;to&#160;be&#160;passed&#160;to&#160;the&#160;progress&#160;callback;&#160;the<br/>
645 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default&#160;is&#160;None.<br/>
646 Returns:<br/>
647 &#160;Nothing.</tt></dd></dl>
648
649 <dl><dt><a name="PyCdlib-write_fp"><strong>write_fp</strong></a>(self, outfp, blocksize=32768, progress_cb=None, progress_opaque=None)</dt><dd><tt>Write&#160;a&#160;properly&#160;formatted&#160;ISO&#160;out&#160;to&#160;the&#160;file&#160;<a href="builtins.html#object">object</a>&#160;passed&#160;in.&#160;&#160;This<br/>
650 also&#160;goes&#160;by&#160;the&#160;name&#160;of&#160;'mastering'.<br/>
651 &#160;<br/>
652 Parameters:<br/>
653 &#160;outfp&#160;-&#160;The&#160;file&#160;<a href="builtins.html#object">object</a>&#160;to&#160;write&#160;the&#160;data&#160;to.<br/>
654 &#160;blocksize&#160;-&#160;The&#160;blocksize&#160;to&#160;use&#160;when&#160;copying&#160;data;&#160;the&#160;default&#160;is&#160;32768.<br/>
655 &#160;progress_cb&#160;-&#160;If&#160;not&#160;None,&#160;a&#160;function&#160;to&#160;call&#160;as&#160;the&#160;write&#160;call&#160;does&#160;its<br/>
656 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;work.&#160;&#160;The&#160;callback&#160;function&#160;must&#160;have&#160;a&#160;signature&#160;of:<br/>
657 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;def&#160;func(done,&#160;total,&#160;opaque).<br/>
658 &#160;progress_opaque&#160;-&#160;User&#160;data&#160;to&#160;be&#160;passed&#160;to&#160;the&#160;progress&#160;callback;&#160;the<br/>
659 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;default&#160;is&#160;None.<br/>
660 Returns:<br/>
661 &#160;Nothing.</tt></dd></dl>
662
663 <hr/>
664 Data descriptors defined here:<br/>
665 <dl><dt><strong>brs</strong></dt>
666 </dl>
667 <dl><dt><strong>eltorito_boot_catalog</strong></dt>
668 </dl>
669 <dl><dt><strong>enhanced_vd</strong></dt>
670 </dl>
671 <dl><dt><strong>inodes</strong></dt>
672 </dl>
673 <dl><dt><strong>interchange_level</strong></dt>
674 </dl>
675 <dl><dt><strong>isohybrid_mbr</strong></dt>
676 </dl>
677 <dl><dt><strong>joliet_vd</strong></dt>
678 </dl>
679 <dl><dt><strong>logical_block_size</strong></dt>
680 </dl>
681 <dl><dt><strong>pvd</strong></dt>
682 </dl>
683 <dl><dt><strong>pvds</strong></dt>
684 </dl>
685 <dl><dt><strong>rock_ridge</strong></dt>
686 </dl>
687 <dl><dt><strong>svds</strong></dt>
688 </dl>
689 <dl><dt><strong>udf_anchors</strong></dt>
690 </dl>
691 <dl><dt><strong>udf_beas</strong></dt>
692 </dl>
693 <dl><dt><strong>udf_boots</strong></dt>
694 </dl>
695 <dl><dt><strong>udf_file_set</strong></dt>
696 </dl>
697 <dl><dt><strong>udf_file_set_terminator</strong></dt>
698 </dl>
699 <dl><dt><strong>udf_logical_volume_integrity</strong></dt>
700 </dl>
701 <dl><dt><strong>udf_logical_volume_integrity_terminator</strong></dt>
702 </dl>
703 <dl><dt><strong>udf_main_descs</strong></dt>
704 </dl>
705 <dl><dt><strong>udf_nsr</strong></dt>
706 </dl>
707 <dl><dt><strong>udf_reserve_descs</strong></dt>
708 </dl>
709 <dl><dt><strong>udf_root</strong></dt>
710 </dl>
711 <dl><dt><strong>udf_teas</strong></dt>
712 </dl>
713 <dl><dt><strong>vdsts</strong></dt>
714 </dl>
715 <dl><dt><strong>version_vd</strong></dt>
716 </dl>
717 <dl><dt><strong>xa</strong></dt>
718 </dl>
719 </td></tr></table></td></tr></table><p>
720 </p><table width="100%" cellspacing="0" cellpadding="2" border="0" summary="section">
721 <tr bgcolor="#55aa55">
722 <td colspan="3" valign="bottom">&#160;<br/>
723 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
724
725 <tr><td bgcolor="#55aa55"><tt>&#160;&#160;&#160;&#160;&#160;&#160;</tt></td><td>&#160;</td>
726 <td width="100%"><strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 262144)<br/>
727 <strong>have_py_3</strong> = True</td></tr></table>
728 </body></html>