What is an easy way to check if directory 1 is a subdirectory of directory 2 and vice versa?
I checked the Path and DirectoryInfo helperclasses but found no system-r
You can use Path.GetDirectoryName Method to get parent directory. It works for directories too.