Esempio n. 1
0
 public static ZipFile Open(string zipFilePath, FileAccess fileAccess)
 {
     Helper.ThrowIfFileNotExist(zipFilePath);
     ZipFile zipFile = new ZipFile();
     zipFile.Package = Package.Open(zipFilePath,
         FileMode.Open, fileAccess);
     return zipFile;
 }
Esempio n. 2
0
 public static ZipFile Create(string zipFilePath)
 {
     ZipFile zipFile = new ZipFile();
     zipFile.Package = Package.Open(zipFilePath, FileMode.Create);
     return zipFile;
 }