title: How do I find the parent directory of a path?
body: <p>How do I get a parent of a directory, for example:</p>
  
  <pre><code>string upDir = GetOneLvlUp(@"C:\AAA\BBB\CCC\DDD\");
  
  Output:  C:\AAA\BBB\CCC\
  </code></pre>