This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 390
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. |
WeidiDeng
added a commit
to WeidiDeng/archiver
that referenced
this issue
Oct 17, 2022
@nicola-spb see if 355 fix your problem |
@WeidiDeng Hi, |
mholt
pushed a commit
that referenced
this issue
Oct 19, 2022
* ignore empty root dir name when compressing file fix [350](#350) * check return err from filepath.Walk
Thank you @WeidiDeng !! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: