Both overloads of TFileSystem.FindMatchingFiles take _IncludePath, _Sort and _HandleHidden as Booleans, so a call like FindMatchingFiles(Mask, sl, False, True, True) says nothing about what it asks for, and swapped arguments still compile. They are thin wrappers around TSimpleDirEnumerator.Execute, which got overloads with a TDirEnumOptionSet (deoIncludePath, deoUnsorted, deoRecursive, deoIncludeHidden) in [features:#40].
FindMatchingFiles should get the same: overloads that take a TDirEnumOptionSet, with the Boolean ones deprecated, following the same rules as in #40 so that no existing call becomes ambiguous or changes meaning.
Found in the review of [features:#40].
Won't do: both overloads did exactly what
TSimpleDirEnumerator.EnumFilesOnlydoes with aTDirEnumOptionSet, so they are deprecated instead, in revision [r2547].Related
Commit: [r2547]