[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'FileUtil' (#lazutils)

TFileSearcher.CircularLinkdetection

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

Declaration

Source position: fileutil.pas line 161

public property TFileSearcher.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.

Version info

Added in LazUtils version 4.0.

See also

TFileSearcher.Search

  

Searches for files or directories in the specified path(s) using the specified options.

TFileSearcher.FollowSymLink

  

Indicates if a search process directory paths that are symbolic links.

FileIsSymLink

  

Indicates if the specified file is a symbolic link in the file system.

ReadAllLinks

  

Resolves a symbolic link to an actual file name.


Version 4.0 Generated 2025-05-03 Home