예제 #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);
 }