barneygale / iso9660 Goto Github PK
View Code? Open in Web Editor NEWthis python library can list and extract files from a common (non-utf) iso file
License: Other
this python library can list and extract files from a common (non-utf) iso file
License: Other
Hi,
I was wondering about what license this neat little library is available under? Is the intention to release it into the public domain, or do you have a specific license in mind?
Best regards,
Søren Løvborg
Traceback (most recent call last):
File "iso9660.py", line 286, in
cd = ISO9660(iso_path)
File "iso9660.py", line 34, in init
self._unpack_pvd()
File "iso9660.py", line 169, in _unpack_pvd
self._pvd['volume_space_size'] = self._unpack_both('i')
File "iso9660.py", line 257, in _unpack_both
assert a == b
AssertionError
Hi, I would like to use this module, under what license it was released?
I first want to say that your ISO9660 class is pretty nice and minimalist. I like a lot how it works and how it is used. However I have encountered an issue that stops me from using it and I can't figure out the cause of the problem myself: it seems that it doesn't finds all the files in the file-system.
Example:
a = ISO9660('path/to/file.iso')
for i in a.tree(): print i
This code snippet doesn't print all the files on disc. Tested with two different iso files from tier source as well as one created via "mkisofs -V TEST -l -o test2.iso data_folder". The found files have the correct 'ex_len' and 'ex_loc' but a lot of the files are missing.
A fix or a pointer to the issue would be welcome.
Thank you very much!
FG
[EDIT]
It seems it only "sees" the files that are listed in the first sector of each directory record (including for root). It may have something to do with the fact that there might be padding to avoid a file record to extend over two sectors.
[EDIT 2]
This quick dirty fix allows to list all files using the code snipet posted higher: http://pastebin.com/vQ24aqjX
But getting files via "a.get_file('/SUBFOLDER/FILE.EXT') then fails. It works for '/FILE' though,
There is no usage example to extract iso content and no example to use it as module/ library. It would be awesome if you support this feature. This can br some thing like this "python iso9660.py [path] [extract_dir_path]".
Thanks in advance
This is a feature request. By default the file content is stdout. Is it possible to provide a feature to extract all files from an iso container.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.