title: How to get the second to last directory in a path string in C#
body: <p>For example,</p>
  
  <pre><code>string path = @"C:\User\Desktop\Drop\images\";
  </code></pre>
  
  <p>I need to get only <code>@"C:\User\Desktop\Drop\</code></p>
  
  <p>Is there any easy way of doing this?</p>