29 lines
595 B
C#
29 lines
595 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO.Compression;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PWAppUpdater.Zip
|
|
{
|
|
class ZipManager
|
|
{
|
|
public static void UnZip(string source, string destination, bool Override)
|
|
{
|
|
if (Override)
|
|
{
|
|
if (Directory.Exists(destination))
|
|
{
|
|
Directory.Delete(destination, true);
|
|
}
|
|
}
|
|
|
|
ZipFile.ExtractToDirectory(source, destination);
|
|
}
|
|
|
|
}
|
|
}
|
|
|