Removed recursiveness when checking for .wabbajack for valid MO2 installs

This commit is contained in:
Justin Swanson 2019-12-24 00:28:39 -06:00
parent b97cabd1e6
commit d30f81ecbd

View File

@ -327,7 +327,7 @@ namespace Wabbajack.Lib
if (!Directory.Exists(path)) return ErrorResponse.Success;
// Check folder does not have a wabbajack modlist
foreach (var file in Directory.EnumerateFiles(path, DirectoryEnumerationOptions.Recursive))
foreach (var file in Directory.EnumerateFiles(path))
{
if (!File.Exists(file)) continue;
if (System.IO.Path.GetExtension(file).Equals(ExtensionManager.Extension))