protected bool CheckCleanModsFolder(string p_strMods)
{
if (Directory.Exists(p_strMods))
{
if (Directory.Exists(Path.Combine(p_strMods, "cache")))
{
return ((Directory.GetFiles(p_strMods, "*.zip", SearchOption.TopDirectoryOnly).Length + Directory.GetFiles(p_strMods, "*.7z", SearchOption.TopDirectoryOnly).Length + Directory.GetFiles(p_strMods, "*.rar", SearchOption.TopDirectoryOnly).Length) <= 0);
}
}
return true;
}