Nexus.Client.Games.Settings.RequiredDirectoriesControlVM.CheckCleanModsFolder C# (CSharp) Method

CheckCleanModsFolder() protected method

Checks whether the selected Mods folder is clean.
protected CheckCleanModsFolder ( string p_strMods ) : bool
p_strMods string
return bool
		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;
		}