Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2020-09

FileUtil.FindAllFiles - case-sensitive on Unix

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT
procedure FindAllFiles(AList: TStrings; const SearchPath: String;
    Searcher.Search(SearchPath, SearchMask, SearchSubDirs);

Here we miss parameter "CaseSensitive=False". So on Linux it is False and function does case-insens search. It is slower! Why not to add param True for Unix. Not sure about macOS.

Regards, Alexey

Reply by email

Michael Van Canneyt
to AlexeyT
AlexeyT wrote 7 lines
procedure FindAllFiles(AList: TStrings; const SearchPath: String; ?? Searcher.Search(SearchPath, SearchMask, SearchSubDirs); Here we miss parameter "CaseSensitive=False". So on Linux it is False and function does case-insens search. It is slower! Why not to add param True for Unix. Not sure about macOS.

Did you try setting the list to case sensitive ?

Michael.

Reply by email