Skip to content

Support do blocks for readers, writers, and zip entries - #110

Open
Sinkleberg wants to merge 1 commit into
fhs:masterfrom
Sinkleberg:codex/zipfile-do-blocks
Open

Sinkleberg wants to merge 1 commit into
fhs:masterfrom
Sinkleberg:codex/zipfile-do-blocks

Conversation

@Sinkleberg

Copy link
Copy Markdown

This adds do-block support to Reader, Writer, and addfile. If the block throws, the archive or entry still closes. A stream you pass in stays open.

The package tests passed on Julia 1.6.7 and 1.10.13. I also checked that archives written this way could be read with Python’s zipfile.

Closes #93. Developed and tested with Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support do statement syntax

1 participant