As the subject says - I'm trying to understand, why Directory.GetFiles
only returns 1 result, when using asterisk in the SearchPattern.
For example, I'm trying to find all .nfo files in my directory, so I'm searching like this:
Directory.GetFiles(directory, "*.nfo");
But it always and only returns 1 hit even though, there's 2x nfo files in that directory - why ???
If I search like this:
Directory.GetFiles(directory, "*.*");
Then I get all files, including my 2x .nfo files.
Is this a known bug in Directory.GetFiles
, or can anyone explain this ???
Thanks in advance.
PS: I've also tried to search using Directory.EnumerateFiles
instead but with the same result... :(