How do you change the name stored in the zip file?
Also, can this be done when adding the file via:
ZipFile zf = new ZipFile("path");
zf.BeginUpdate();
zf.Add(filePath); <-- i would like to also be able to change it when adding
zf.CommitUpdate();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you looked at the
NameTransformproperty?See SharpLibZip: Add file without path for an example of usage.
Update: Apparently, the latest version of SharpZipLib contains an overload for
Add()that takes the filename.