Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Files dont puts in root dir on zip archives #136

Closed
rw209 opened this issue Jan 6, 2019 · 1 comment
Closed

Files dont puts in root dir on zip archives #136

rw209 opened this issue Jan 6, 2019 · 1 comment

Comments

@rw209
Copy link

rw209 commented Jan 6, 2019

What version of the package or command are you using?

latest on 06 jan 19

What are you trying to do?

create typycal zip arch, as example code

What steps did you take?

z := archiver.Zip{
		CompressionLevel:       flate.DefaultCompression,
		MkdirAll:               true,
		SelectiveCompression:   true,
		ContinueOnError:        false,
		OverwriteExisting:      true,
		ImplicitTopLevelFolder: false,
	}
_ = z.Archive([]string{"/home/user/go/src/testCatalog/"}, "/home/user/go/src/testArchLib/out.zip")

What did you expect to happen, and what actually happened instead?

Should be: rootDir/other files
Have: rootDir, other files
(other files not putted in rootDir)
http://i.imgur.com/Ieneeb9.png that Pic

How do you think this should be fixed?

Please link to any related issues, pull requests, and/or discussion

Bonus: What do you use archiver for, and do you find it useful?

@mholt
Copy link
Owner

mholt commented Jan 2, 2022

During the holidays I took some time and completely rewrote this library in #302 and am preparing to merge and tag v4. The new core APIs are completely stream-oriented and I believe issues with file placement in archives should be solved. We can reopen this if it is still an issue though.

@mholt mholt closed this as completed Jan 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants