[Lazarus] GetAllFilesMask / AllFilesMask

Bart bartjunk64 at gmail.com
Sat Apr 27 19:23:30 CEST 2013


On 4/24/13, Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:

> If a file starts with a dot, it is *not* considered to separate name and
> extension on Windows. In this case the dot is part of the name and there is
> no extension (unless a second dot exists). A file *must* have a name part,
> only the extension can be omitted (on Windows).

Thanks for explaining that.

I tried to use the PathMatchSpecEx function to see if that would help.
(http://msdn.microsoft.com/en-us/library/windows/desktop/bb773728%28v=vs.85%29.aspx)

But, as I later also found on
http://qualapps.blogspot.com/2009/08/pathmatchspec-problems.html ,  it
doesn't solve our problem.

We may need a seperate FileNameMatchesWindowsWildcards function or
something alike, to handle these (borderline?) cases.

Bart




More information about the Lazarus mailing list