C# - Reading directory ending with period
<p>I have a directory that ends with a period (.), created by rsync via Cygwin on a Windows server.</p>

<p>The code I have tries to read a file inside this directory but I get an exception saying that it "Could not find a part of the path" and the ending period is missing from the path the program tries to read.</p>

<p>Is it possible to read directories ending in a period via C#?</p>

<p>Thank you for any help.</p>

<p>Code beeing used:</p>

<pre><code>StreamReader sr = null;
try
  {
    sr = new StreamReader(@"&lt;path_ending_in_period&gt;", System.Text.Encoding.Default);
  }
catch (Exception ex)
  {
            ....
  }
</code></pre>
