Is there any reason that you don't always use the scanner?

if (file.IndexOf("*") != -1 || file.IndexOf("?") != -1) {
...
} else
    return File.Exists(Project.GetFullPath(file));

Less code paths, etc... :)

----- Original Message ----- 
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "Hemry, Jeff" <[EMAIL PROTECTED]>; "! nant"
<[EMAIL PROTECTED]>
Sent: Friday, February 27, 2004 11:13 AM
Subject: PATCH: file::exists() wildcard support, WAS: Re: [nant-dev] 2 small
changes to consider


> This patch adds wildcard support to file::exists(). Basically it uses
> DirectoryScanner to find matching files.
>
> Is it ok to commit it ?
>
> Jarek
>



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to