Frapid.WebsiteBuilder.Models.Themes.ThemeUploader.ExtractTheme C# (CSharp) Method

ExtractTheme() private method

private ExtractTheme ( ) : void
return void
        private void ExtractTheme()
        {
            this.ExtractedDirectory = this.ArchivePath.Replace(".zip", "");

            try
            {
                ZipFile.ExtractToDirectory(this.ArchivePath, this.ExtractedDirectory);
            }
            catch (InvalidDataException ex)
            {
                throw new ThemeInstallException("Could not install theme because the supplied file was not a valid ZIP archive.", ex);
            }
        }