-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[help] example on how to parse an iso file #81
Comments
If I download dsl-4.11.rc1.iso from http://distro.ibiblio.org/damnsmall/release_candidate/, hachoir-urwid shows me a ISO 9660 file system:
I'm not sure what you are looking for. Most basic example: from hachoir.parser import createParser
from hachoir.metadata import extractMetadata
from sys import argv, stderr, exit
filename = "/home/vstinner/dsl-4.11.rc1.iso"
parser = createParser(filename)
if not parser:
print("Unable to parse file", file=stderr)
exit(1)
with parser:
for field in parser:
print(field.name) Output:
|
ok, how can i list (and extract) the files inside each |
It don't know where filenames are stored in an ISO file system. Maybe the Hachoir parser is incomplete. |
followup:
https://stackoverflow.com/questions/45107320/parsing-an-iso-file-with-hachoir
is it possible to iterate over these
hachoir.parser.file_system.iso9660.Volume
items and list the filenames inside the iso file?The text was updated successfully, but these errors were encountered: