title: How to check if directory 1 is a subdirectory of dir2 and vice versa
body: <p>What is an easy way to check if directory 1 is a subdirectory of directory 2 and vice versa?</p>
  
  <p>I checked the Path and DirectoryInfo helperclasses but found no system-ready function for this. I thought it would be in there somewhere.</p>
  
  <p>Do you guys have an idea where to find this?</p>
  
  <p>I tried writing a check myself, but it's more complicated than I had anticipated when I started.</p>