Skip to content

Commit

Permalink
Fix #119
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Jan 8, 2024
1 parent 7a5f3c6 commit ed3826c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GameFinder.Wine/Bottles/BottlesWinePrefixManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public IEnumerable<OneOf<BottlesWinePrefix, ErrorMessage>> FindPrefixes()
}

var bottles = defaultLocation.Combine("bottles");
if (!bottles.DirectoryExists())
{
yield return new ErrorMessage($"Bottles directory {bottles.GetFullPath()} does not exist");
yield break;
}

foreach (var bottle in _fileSystem.EnumerateDirectories(bottles, recursive: false))
{
var res = IsValidBottlesPrefix(_fileSystem, bottle);
Expand Down

0 comments on commit ed3826c

Please sign in to comment.