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

Can I choose a different filename / location other than its filepath #112

Closed
ChangePlaces opened this issue May 2, 2016 · 2 comments
Closed
Assignees
Labels
enhancement Feature request or other improvements of existing functionality zip Related to ZIP file format
Milestone

Comments

@ChangePlaces
Copy link

Steps to reproduce

  1. Create a zip file with ZipFile.Create
  2. Begin and Add(aFilename) which may be baseFolder/anotherFolder/filename.txt

Expected behavior

Is it possible to instead choose the path within the zip file? So that, baseFolder/anotherFolder/filename.txt could instead, for example, become readme.txt?

Actual behavior

See that directory structure automatically created in the zipfile which may be undesirable.

Version of SharpZipLib

Using NuGet version 0.86.0.518

@McNeight McNeight self-assigned this May 5, 2016
@McNeight McNeight added enhancement Feature request or other improvements of existing functionality zip Related to ZIP file format labels May 5, 2016
@McNeight McNeight modified the milestone: post 1.0 Aug 14, 2016
@Numpsy
Copy link
Contributor

Numpsy commented Apr 5, 2020

Does the

public void Add(string fileName, string entryName)

override @

public void Add(string fileName, string entryName)

Handle this case now?

@ChangePlaces
Copy link
Author

Well done chaps! Only 4 years and one pandemic later ;)

@piksel piksel closed this as completed Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or other improvements of existing functionality zip Related to ZIP file format
Projects
None yet
Development

No branches or pull requests

4 participants