示例#1
0
 static void ZipTo(string sourcePath, string destFilePath)
 {
     // Need to provide relative paths here, not full paths.
     var files = Directory.GetFiles(sourcePath)
                 .Select(x => Path.GetFileName(x))
                 .ToArray();
     ZipFileCompressor z = new ZipFileCompressor(destFilePath, sourcePath, files, deleteIfOutputExists: true);
 }
示例#2
0
文件: Program.cs 项目: jaredpar/VsVim
 static void ZipTo(string sourcePath, string destFilePath)
 {
     // Need to provide relative paths here, not full paths.
     var files = Directory.GetFiles(sourcePath)
         .Select(x => Path.GetFileName(x))
         .ToArray();
     ZipFileCompressor z = new ZipFileCompressor(destFilePath, sourcePath, files, deleteIfOutputExists: true);
 }