title: C# detect folder junctions in a path
body: <p>I want to make a quick check if in a complete path a Junction point is used. I already have a function to test a folder like <code>IsJunction()</code> but maybe there is an other solution to not call <code>IsJunction()</code> on every subfolder.</p>
  
  <p>So I'm looking for a function like <code>HasJunctionsInPath(string path)</code> without testing each folder of the path.</p>
  
  <p>Is there something which can do this?</p>
  
  <p>Edit:</p>
  
  <p>Or better...</p>
  
  <p>Is it possible to resolve all junctions in a path to get the real location of a file or folder? This would be even better solve my problem and I still can compare the result with the original path to implement a <code>bool HasJunctionsInPath(string path)</code> function.</p>