allanlei / python-zipstream

Like Python's ZipFile module, except it works as a generator that provides the file in many small chunks.
GNU General Public License v3.0
128 stars 34 forks source link

handling exceptions while streaming #18

Open ael-code opened 8 years ago

ael-code commented 8 years ago

This is the case scenario:

So while streaming, you try to open a file but an exception (OSError or IOError) is raised. You want to skip that specific file and stream all other valid elements.

I did not find any way to achieve this behaviour. Maybe some option like skip_on_error could help.