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

i have to call zf.close() to flush to disk? #94

Closed
dotkt opened this issue Jan 18, 2021 · 2 comments
Closed

i have to call zf.close() to flush to disk? #94

dotkt opened this issue Jan 18, 2021 · 2 comments

Comments

@dotkt
Copy link

dotkt commented Jan 18, 2021

i call zf.addFile gets true,but the zip file did not show up.
so i call zf.addfile and zf.close(),then the zip file shows up.
is this the right usage?

@ctabin
Copy link
Owner

ctabin commented Jan 19, 2021

Hi @dotkt,

I hereby confirm that you have to call close() to flush to the disk.
This behavior is based on the underlying zip_close() function.

@ctabin ctabin closed this as completed Jan 19, 2021
@dotkt
Copy link
Author

dotkt commented Jan 21, 2021

ok many thanks

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

No branches or pull requests

2 participants