System.IO.Abstractions icon indicating copy to clipboard operation
System.IO.Abstractions copied to clipboard

Directory.GetFileSystemEntries is missing the SearchOption parameter

Open StarWars999123 opened this issue 4 years ago • 3 comments

The windows method for Directory.GetFileSystemEntries supports a parameter SearchOption to return not only values of the top most entries, but also the possibility to search within all sub directories. However, the mock hereby has no option for it yet.

It would be great to use this method here. Is there a chance, that you add this functionality?

(Function gets used within a .Net Core ASP.NET MVC application)

StarWars999123 avatar Dec 09 '21 00:12 StarWars999123

I was able to circumvent the usage of this parameter by the help of the following method: https://stackoverflow.com/a/25923435/4169550

A quick fix would be great anyway.

StarWars999123 avatar Dec 09 '21 01:12 StarWars999123

Thanks for the issue! We're currently missing this overload in our API. We can tackle this together with #774.

fgreinacher avatar Dec 09 '21 13:12 fgreinacher

I should be able to take a look at this over the weekend

rkm avatar Mar 22 '22 20:03 rkm

This is addressed in release v17.2.1.

github-actions[bot] avatar Sep 10 '22 13:09 github-actions[bot]

This is addressed in release v17.2.1.

github-actions[bot] avatar Sep 16 '22 15:09 github-actions[bot]