TTreeVerify.CompareDirs lists the subdirectories with TSimpleDirEnumerator.EnumDirsOnly and recurses into each, so it also follows directory junctions and symbolic links. A link that points back up the tree (mklink /J loop ..) makes it compare the same files again on every level until the path gets too long, and a link to another tree compares that tree as if it were part of this one.
From reading the code, not measured. The same recursion in TSimpleDirEnumerator.Execute was measured in [bugs:#99]: a junction to its own parent returned every file 32 times.
Junctions and symlinks (reparse tags IO_REPARSE_TAG_MOUNT_POINT and IO_REPARSE_TAG_SYMLINK) should not be followed, perhaps reported as a difference if only one side has the link. Other reparse points such as OneDrive folders are ordinary directories.
Fixed in revision [r2545].
Related
Commit: [r2545]