Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing to a new zip archive member without explicitly creating it raises MNU #4897

Open
theseion opened this issue Oct 13, 2019 · 0 comments

Comments

@theseion
Copy link
Contributor

@theseion theseion commented Oct 13, 2019

See #2227.

The following should not fail with an MNU. The archive member should either be created implicitly or a proper exception should be raised:

| zipFile zip |
zipFile := FileSystem memory workingDirectory / 'test.zip'.
zip := (FileSystem zip: zipFile) open.
zip / 'sample.txt'
  writeStreamDo: [ :stream |
  stream nextPutAll: 'test' ];
  yourself.
zip workingDirectory files first readStreamDo: [ :s | s contents ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.