Skip to content

Commit

Permalink
Handles IOException in DirectoryHelper (#8992)
Browse files Browse the repository at this point in the history
Similar to #8219
  • Loading branch information
maryamariyan authored Jul 20, 2023
1 parent f6446a8 commit e498658
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ internal static IEnumerable<string> GetFilteredFiles(
logger?.LogWarning("PathTooLong: {exception}", ex.Message);
yield break;
}
catch (IOException ex)
{
logger?.LogWarning("IOException: {exception}", ex.Message);
yield break;
}

foreach (var path in directories)
{
Expand Down

0 comments on commit e498658

Please # to comment.