Beispiel #1
0
 //
 private System.IO.Compression.ZipArchive CreateZipper(System.IO.Compression.ZipArchiveMode mode)
 {
     try
     {
         // create a blank zip file, if no zip file exists
         if (!System.IO.File.Exists(BackendStorageZipFilename))
         {
             System.IO.Compression.ZipFile.Open(BackendStorageZipFilename, System.IO.Compression.ZipArchiveMode.Update).Dispose();
         }
         return(System.IO.Compression.ZipFile.Open(BackendStorageZipFilename, mode));
     }
     catch
     {
         throw;
     }
 }
Beispiel #2
0
 public IZipArchive Open(string archiveFileName, System.IO.Compression.ZipArchiveMode mode, Encoding entryNameEncoding)
 {
     return(new ZipArchiveWrap(ZipFile.Open(archiveFileName, mode, entryNameEncoding)));
 }
 public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen)
 {
 }
 public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode, bool leaveOpen, System.Text.Encoding entryNameEncoding)
 {
 }
 public ZipArchive(System.IO.Stream stream, System.IO.Compression.ZipArchiveMode mode)
 {
 }