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

Allow writable ZipFileSystem #1017

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Conversation

martindurant
Copy link
Member

No description provided.

@martindurant
Copy link
Member Author

It appears to be necessary for the calling code to call fs.zip.close() to get the output to finalize, I am not sure why.

@joshmoore
Copy link
Contributor

That certainly matches the special close handling that was previously needed in Zarr: https://github.com/zarr-developers/zarr-python/blob/994f2449b84be544c9dfac3e23a15be3f5478b71/zarr/storage.py#L1225

@martindurant martindurant merged commit a310257 into fsspec:master Aug 11, 2022
@martindurant martindurant deleted the zip_writable branch August 11, 2022 11:12
@TomasPuverle
Copy link

Hi @martindurant,

I just saw this PR in response to the discussion on one of the threads!
This will probably make my life a lot easier. Many thanks, I'll give this a try as soon as I can!

Tom

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.

3 participants