// Use this for initialization void Start() { // Zipファイル展開後に作成を行う StartCoroutine(ZipControl.OpenZip(FileIOControl.LocalFolderPath + "\\logo.zip", FileIOControl.LocalFolderPath, () => { // Zipファイルの作成を行う var dic = Directory.GetDirectories(FileIOControl.LocalFolderPath); if (dic.Length > 0) { StartCoroutine(ZipControl.CreateZip(dic[0], FileIOControl.LocalFolderPath + "\\logo_.zip", () => Debug.Log("Create Zip"))); } })); }
public bool Descomprimir(ProcesoDto ProcDto, string rutaorigen, string rutadestino) { bool respuesta = false; try { ZipControl unzip = new ZipControl(); unzip.Origen = rutaorigen; unzip.Destino = rutadestino; unzip.DescmprimirArchivos(); respuesta = true; } catch (Exception Err) { ErrLog.EscribeLogWS("WSDependencias.Descomprimir " + Err.Message.ToString()); } return(respuesta); }