AddonManager.AddonEx.extractAddonFile C# (CSharp) Метод

extractAddonFile() статический приватный Метод

static private extractAddonFile ( this addonPath ) : String
addonPath this
Результат String
        internal static String extractAddonFile(this String addonPath)
        {
            string tempDir = Path.Combine(Path.GetTempPath(), Path.GetFileNameWithoutExtension(addonPath));
            if (Directory.Exists(tempDir)) Directory.Delete(tempDir, true);
            Directory.CreateDirectory(tempDir);

            string tempFile = Path.GetTempFileName();
            File.WriteAllBytes(tempFile, readAddonProperty(addonPath, addonFileDef));

            new FastZip().ExtractZip(tempFile, tempDir, null);
            if (File.Exists(tempFile)) File.Delete(tempFile);

            return tempDir;
        }
        internal static Boolean saveAddonFile(this String filePath, String addonType, params String[][] lists)