Extracting files from an ISO image?

Rob Williscroft rtw at freenet.co.uk
Wed Jan 2 14:07:00 EST 2008


Ant wrote in news:34a84caa-5387-40a2-a808-
5e7bd325023e at w47g2000hsa.googlegroups.com in comp.lang.python:

[snip]

> 
> So I have two questions really:
> 
> 1) Is there a module out there for extracting files from an ISO?

There are command line programs that can do this:

  http://cdrecord.berlios.de/old/private/cdrecord.html

This (with isoinfo.exe from the above) will list all files in an 
iso image file:

  CD = <path-to-iso>
  import subprocess

  subprocess.call( [ "isoinfo.exe", '-f', '-i', CD ] )

isoinfo.exe also has a switch to extract a file to stdout

One problem you may have is daemon tools will mount cd images that
aren't iso images, where as isoinfo appears to handle only genuine
iso file systems.

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/



More information about the Python-list mailing list