How to get only directory name from full file path c#

Question: How to get only directory name from full file path c# Answer: