-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Broken Zip archive #350
Comments
Thanks, but this is pretty much the exact same info that's in your other post, so I don't know what to do with this. Please provide minimal reproduction steps from scratch so I can investigate, or, feel free to submit a PR with a fix. Thanks |
Hi,
|
Thanks! I will do this ASAP |
@nicola-spb Do you mean to put all the files in /home/.../test directly under the root of the zip file? While on my mac, the zip file is valid, because of the extra / entry, when unzip, there are some error complaining. |
@nicola-spb see if 355 fix your problem |
@WeidiDeng Hi, |
* ignore empty root dir name when compressing file fix [350](#350) * check return err from filepath.Walk
Thank you @WeidiDeng !! |
What version of the package or command are you using?
v4.0.0-alpha.7
What are you trying to do?
I trying extract ZIP archive which created by archiver.
What steps did you take?
What did you expect to happen, and what actually happened instead?
When I creating archive and use archiver.FilesFromDisk (for all files in folder) with ZIP format then I have broken archive. I can open archive, open files in archive but I cannot extract files (in Ubuntu) and when I open archive in windows I see root folder but archive should not have it's folder.
How do you think this should be fixed?
I think it's depends on archive type because when I create tar with gzip using MakeArchive it's ok.
Please link to any related issues, pull requests, and/or discussion
See too #331
Bonus: What do you use archiver for, and do you find it useful?
Using for reading and creating archive.
The text was updated successfully, but these errors were encountered: