Function WildcardMatches ( FindFile )

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Function WildcardMatches ( FindFile )

Postby rafael castro » February 28th, 2010, 2:40 am

I think it would be interesting to add also find files without extension.
for example with *. (asterisk dot only) not working

thanks
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: February 28th, 2010, 2:25 am

Re: Function WildcardMatches ( FindFile )

Postby Kambiz » February 28th, 2010, 11:30 am

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Function WildcardMatches ( FindFile )

Postby rafael castro » February 28th, 2010, 12:34 pm

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.
rafael castro
Active Member
Active Member
 
Posts: 6
Joined: February 28th, 2010, 2:25 am


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron