From abb74a17d224dfd29359a2530f27a9c97f63cd3e Mon Sep 17 00:00:00 2001 From: dsiders Date: Tue, 6 Feb 2024 20:58:12 +0000 Subject: [PATCH] Docs: LazUtils/fileutil. Adds TFileSearcher.CircularLinkDetection topic for changes in 65e09305. * Modifies TFileSearcher.FollowSymLink --- docs/xml/lazutils/fileutil.xml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/docs/xml/lazutils/fileutil.xml b/docs/xml/lazutils/fileutil.xml index 623ddee1de..a901485403 100644 --- a/docs/xml/lazutils/fileutil.xml +++ b/docs/xml/lazutils/fileutil.xml @@ -55,6 +55,7 @@ WideStringManager is not needed. + @@ -1502,6 +1503,8 @@ TFileSearcher is the ancestor class for more specialized descendants like + + @@ -1851,9 +1854,15 @@ link. When set to False, the directory is not processed; the method ignores the directory path. The OnDirectoryFound event handler is signalled for the iterator value.

+

+Use CircularLinkDetection to control whether symbolic links in already +processed directories are included in the search results. +

+ + @@ -1930,6 +1939,39 @@ considered a match in the Search method.
+ + +Enables or disables detection of circular references when resolving symbolic +links. + + +

+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. + + + + +FileIsSymLink +ReadAllLinks + +
+ Event handler signalled when a new directory is found in the Search method.