C# : zip extract zip into a folder/ save a folder into a zip file @ 071's blog :: 隨意窩 Xuite日誌
    1. 沒有新回應!
  • 201912250928C# : zip extract zip into a folder/ save a folder into a zip file

    ZipFile odsZipFile = this.GetZipFile(inputFilePath);
    String tempPath = Path.GetTempPath();
    String zipPath = tempPath + "output_dir";
    if (Directory.Exists(zipPath))
    {
    Directory.Delete(zipPath, true);
    }
    // extract a zip file
    odsZipFile.ExtractAll(zipPath);

     

    // Save folder into a zip file
    using (var zip = new ZipFile())
    {
    zip.AddDirectory(zipPath);
    zip.Save(outputFilePath);
    //zip.Save(tempPath + "output.ods");
    }

    How to detect m...|日誌首頁|websocket over http (nginx)上一篇How to detect memory leak of C++/C program in Linux...下一篇websocket over http (nginx)
    回應