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

ignore empty root dir name when compressing file #355

Merged
merged 2 commits into from
Oct 19, 2022

Conversation

WeidiDeng
Copy link
Contributor

fix 350

@WeidiDeng WeidiDeng mentioned this pull request Oct 17, 2022
@mholt
Copy link
Owner

mholt commented Oct 17, 2022

Thanks! I'll await confirmation from @nicola-spb and if it fixes the issue we can merge this in

@WeidiDeng
Copy link
Contributor Author

I find that FilesFromDisk will never return error, because it never checks error from filepath.Walk, (the error in walk func will stop walk but will not be returned).

@mholt
Copy link
Owner

mholt commented Oct 18, 2022

@WeidiDeng Wow, you are right. I missed that too 😄

@nicola-spb
Copy link

nicola-spb commented Oct 18, 2022

@mholt Hi
Pull request fix it (check in Ubuntu and Win).

Copy link
Owner

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you very much for the patch @WeidiDeng, and thanks to @nicola-spb for confirming.

@mholt mholt merged commit 2822485 into mholt:master Oct 19, 2022
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.

Broken Zip archive
3 participants