Skip to content

handling exceptions while streaming  #18

Open
@ael-code

Description

@ael-code

This is the case scenario:

  • create a zipsrteam.ZipFile
  • add some files through the ZipFile.write function
  • delete some of the added files
  • stream the content using ZipFile.__iter__

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions