On 4/22/13, Bart <bartjun...@gmail.com> wrote:
> On Windows using '*' as filemask will find (FindFirst/FindNext) all
> files, with or without extension.

So does *.* on Windows. That is why the TFileSearcher behavior was changed.


> 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.

Fortunately it is a rare situation. If needed, test for it can be added.

Juha

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to