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 IsJunction()
but maybe there is an other solution to not call IsJunction()
on every subfolder.
So I'm looking for a function like HasJunctionsInPath(string path)
without testing each folder of the path.
Is there something which can do this?
Edit:
Or better...
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 bool HasJunctionsInPath(string path)
function.