followLinks property
Whether symbolic links are resolved.
When false (the default), every link below the root is reported as a file entry with Link data and is never entered, so the scan never leaves the scanned directory.
When true, a link to a directory is reported as a directory with Directory data and is entered, and a link to a file is reported as a file with File data; both keep the link's own path. A broken link is still reported as a file with Link data. Cycles are detected by resolved paths: a link whose resolved target is the directory being listed or one of its ancestors on the current branch is reported as a file with Link data and not entered, so every scan terminates. A directory reachable through several non-cyclic links is listed once per link, like a regular directory tree would show it. Following links costs one extra file-system call per link plus one per linked directory.
A scan path that is itself a link to a directory is always scanned, whatever this setting.
Implementation
final bool followLinks;