private void ZipToOutputFile(string folderToZip)
 {
     using (ArchiveWriter zip = ArchiveFactory.Writer(ArchiveFactory.Type.Zip, File.OpenWrite(_destFile)))
     {
         zip.CreateArchive(folderToZip);
     }
 }
示例#2
0
 private void ZipToOutputFile(string folderToZip, Action cancellingDelegate = null, Action <int> progressDelegate = null)
 {
     using (ArchiveWriter zip = ArchiveFactory.Writer(ArchiveFactory.Type.Zip, File.OpenWrite(_destFile)))
         zip.CreateArchive(folderToZip, cancellingDelegate, progressDelegate);
 }