TSimpleDirEnumerator.EnumDirsOnly: support deoRecursive, with a callback to...
Brought to you by:
twm
Requested by the GExperts project for the search path dialog's "Add Recursive" button (GExperts bug #587), which today runs its own loop around EnumDirsOnly: it adds .svn/.git and follows junctions without end.
TSimpleDirEnumerator.EnumDirsOnly raises EDirEnumOptionNotSupported for deoRecursive. It should support it, using the loop guard of Execute's recursion ([r2530]):
Execute. The folder of the mask itself is not listed... Filtering the result is not enough, the search must not descend into them. The same callback is offered for Execute's recursion.deoIncludeHidden, as now.deoFollowLinks a junction or symbolic link to a folder is listed but not entered. With it, it is entered, unless its target is gone or cannot be identified.dup to its sibling sub1). This is for EnumDirsOnly only; Execute keeps following two links to the same folder.C:\proj\src, junction src\up to C:\proj) is not entered. Today Execute enters such a link once and lists the ancestor's other subtrees; this applies to Execute too.deoUnsorted; then the trees reached through links.As for Execute, a file system that gives no file IDs gets no loop protection; documented already.
Fixed in revision [r2536].
Related
Commit: [r2536]