Skip to content

Commit

Permalink
Merge pull request #54 from bawaaaaah/patch-1
Browse files Browse the repository at this point in the history
Fix Directory not found exception
  • Loading branch information
Andrew Sampson authored Mar 1, 2017
2 parents e093e5b + 74bca49 commit e85873b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SteamCleaner/Analyzer/AnalyzerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private List<FileInfo> FindFiles(List<string> paths, IProgress<Tuple<string, int
private void CheckNesting(List<string> paths)
{
//Check if this still works!
var nested = paths.Select(Directory.GetDirectories)
var nested = paths.Where(Directory.Exists).Select(Directory.GetDirectories)
.SelectMany(nestedGameFolders => nestedGameFolders)
.ToList();
paths.AddRange(nested);
Expand All @@ -132,4 +132,4 @@ private string FormatError(object obj, Exception e)
return string.Format("Error with analyzer: {0}. Message: {1}", obj.GetType().Name, e.Message);
}
}
}
}

0 comments on commit e85873b

Please sign in to comment.