title: How can I get directory name of a path?
body: <p>I tried using Path.GetDirectoryName() but it doesn't work.</p>
  
  <p>What I'm trying to get is from /home/nubela/test/some_folder , I wanna get "some_folder"</p>
  
  <p>How can I do this? The method should work for both Windows/Linux (Mono)</p>
  
  <p>Thanks!</p>