[Lazarus] GetAllFilesMask / AllFilesMask

Bart bartjunk64 at gmail.com
Mon Apr 22 20:07:48 CEST 2013


On Windows using '*' as filemask will find (FindFirst/FindNext) all
files, with or without extension.

The problem with TFileSearcher is in the MatchesMask function.
This interprets '*.*' as _must_ have a period.
So it will return false on 'foo' , but true on 'foo.'

On Windows, if you use MatchesMask you must remove a dangling '.*'
from the mask, if you want to use it for filenames.

Bart




More information about the Lazarus mailing list