dzEnumDirectories (copied from JclFileUtils and modified) recurses into every entry with faDirectory, so it also follows directory junctions and symbolic links. A link that points back up the tree (mklink /J loop ..) makes it report the same directories again on every level until the path gets too long.
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. Other reparse points such as OneDrive folders are ordinary directories.
Won't fix: deprecated in revision [r2539]. Use TSimpleDirEnumerator.EnumDirsOnly of u_dzFileUtils with deoRecursive instead, see [features:#42].
Related
Commit: [r2539]
Feature Requests:
#42