Confused about Directory.GetFiles : <p>I've read the docs about the <code>Directory.GetPath</code> search pattern and how it is used, because I noticed that <code>*.dll</code> finds both <code>test.dll</code> and <code>test.dll_20170206</code>. That behavior is documented</p>

<p>Now, I have a program that lists files in a folder based on a user-configured mask and processes them. I noticed that masks like <code>*.txt</code> lead to the above mentioned "problem" as expected. </p>

<p>However, the mask <code>fixedname.txt</code> also causes <code>fixedname.txt_20170206</code> or the like to appear in the list, even though the documentation states this only occurs</p>

<blockquote>
  <p>When you use the asterisk wildcard character in a searchPattern such as "*.txt"</p>
</blockquote>

<p>Why is that? </p>

<p>PS: I just checked: Changing the file mask to <code>fixednam?.txt</code> does not help even though the docs say</p>

<blockquote>
  <p>When you use the question mark wildcard character, this method returns only files that match the specified file extension. For example, given two files, "file1.txt" and "file1.txtother", in a directory, a search pattern of "file?.txt" returns just the first file, whereas a search pattern of "file*.txt" returns both files.</p>
</blockquote>
