barneygale / isoparser

Parser for the ISO 9660 disk image format
Other
29 stars 22 forks source link

Enhancement: Allow passing a file-like object in the factory method #22

Open thinkdoggie opened 4 years ago

thinkdoggie commented 4 years ago

Enhancement: Allow passing a file-like object alongside with path and url in the factory method parse().

This pattern provides more flexibility to construct a variety of file-like object such as BytesIO outside of the helper other than a regular file.

This commit also fixes a bug that a relative filesystem path starting with "http", e.g., "http/boot.iso", will be opened as a http URL incorrectly.