Page 1 of 1

Function WildcardMatches ( FindFile )

PostPosted: February 28th, 2010, 2:40 am
by rafael castro
I think it would be interesting to add also find files without extension.
for example with *. (asterisk dot only) not working

thanks

Re: Function WildcardMatches ( FindFile )

PostPosted: February 28th, 2010, 11:30 am
by Kambiz
I checked it out with FindFile v4.10 demo, and *. listed files with no extension.

However, there is another bug; it lists the files with no name also.

Re: Function WildcardMatches ( FindFile )

PostPosted: February 28th, 2010, 12:34 pm
by rafael castro
I have seen this in the function TFileCriteria.Matches

function TFileCriteria.Matches(const Folder, FileName: WideString): Boolean;
var
....
Path := Folder + FileName;
if ExtractFileExt(FileName) = '' then Path := Path + '.';

Adding a dot to files without extension, that solves the problem to the files without extension.