Sign in Join
FPDoc Onlineexperiment

TFileSearcher.CircularLinkdetection property

Member of TFileSearcherpublicIn unit FileUtil

Enables or disables detection of circular references when resolving symbolic links.

Declaration

pascal
property CircularLinkdetection: Boolean read FCircularLinkdetection write FCircularLinkdetection default False;

Description

The value in CircularLinkDetection is used, along with FollowSymLink, in the Search method. They control whether a file is a symbol link in a directory which has already been visited in the method.

When CircularLinkDetection and FollowSymLink are enabled, an internal hash of processed directory names is maintained in the method. If a file is encountered which resolves to one the already processed directories, it is not processed in the Search method.

The default value for the CircularLinkDetection property is False, and disables circular link detection.

Added in LazUtils version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.