This project is read-only.

How to remove the path out?

Jun 30, 2009 at 1:32 PM

I have the following codes (simplied) to add a flie to zip:

using (ZipFile zip = new ZipFile("")

The result in the zip file is a file (test.log) with path. If I only want to add this file without path in the zip file, how can I do it. Should I rename it with path or any option to let ZipFile to ignore file path?

Jun 30, 2009 at 2:39 PM
    zip.AddFile(@"C:\temp\test\test.log", "");