[Lazarus] GetAllFilesMask / AllFilesMask

Jürgen Hestermann juergen.hestermann at gmx.de
Mon Apr 29 17:49:07 CEST 2013


Am 2013-04-29 16:21, schrieb Bart:
> On 4/29/13, Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:
>
>> Which files would be missed with this mask? IMO all files fit this mask (at
>> least for Windows).
> In the context of the original bugreport, they would miss all files
> without an extension, beause the *.* isn't handed to FindFirst, but to
> the MatchesMask that filters FindFirst with * as a mask.
>
> MatchesMask('foo','*.*') -> False
> TMask.Matches matches filenames in a Unix way (as does Delphi's TMask).
>
>
So (int the context of the bug report) the programmer has no chance to do it right and all his knowledge about OS filter masks is of no use because an intermedate routine silently changes his mask? This is more than strange. What is the reason for doing this?




More information about the Lazarus mailing list