AcTools.Utils.FileUtils.Unzip C# (CSharp) Method

Unzip() public static method

public static Unzip ( string pathToZip, string destination ) : void
pathToZip string
destination string
return void
        public static void Unzip(string pathToZip, string destination) {
            if (!Directory.Exists(destination)) {
                Directory.CreateDirectory(destination);
            }

            using (var archive = ZipFile.OpenRead(pathToZip)) {
                archive.ExtractToDirectory(destination);
            }
        }