How do I get a parent of a directory, for example:
string upDir = GetOneLvlUp(@"C:\AAA\BBB\CCC\DDD\"); Output: C:\AAA\BBB\CCC\
upDir = Directory.GetParent(path).FullName;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With