DotNetZip: Add Files to Dynamically Created Archive Directory
问题 I can't imagine this is hard to do, but I haven't been able to get it to work. I have a files class that just stores the location, directory, and name of the files I want to zip. The files I'm zipping exist on disk so the FileLocation is the full path. ZipFileDirectory doesn't exist on disk. If I have two items in my files list, { FileLocation = "path/file1.doc", ZipFileDirectory = @"\", FileName = "CustomName1.doc" }, { FileLocation = "path/file2.doc", ZipFileDirectory = @"\NewDirectory",