Closed fcosantos closed 6 years ago
Currently if you use FileStream with an already open file stream fails, this patch allow you to use it. Example:
raw_iso9660 = open('iso', 'rb') raw_iso9660.seek(-1) size = raw_iso9660.tell() file_stream = isoparser.source.FileStream(raw_iso9660, 0, size) iso = isoparser.iso.ISO(file_stream) print iso print iso.record().children
Thanks very much for this! All looks good to me.
FYI I've reverted the commit as this looks like a mistake in your code - the FileStream class is not meant to be used for this. Does a FileSource not work?
FileStream
FileSource
Currently if you use FileStream with an already open file stream fails, this patch allow you to use it. Example: