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