Summary
Scans a list of directories for the specified filename.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Util - Containing Type
- FileUtils
Syntax
public static string ResolveFile(string[] directories, string fileName, bool recursive)
Remarks
The directories are scanned in the order in which they are defined.
Parameters
| Name | Type | Description |
|---|---|---|
| directories | string[] | The list of directories to search. |
| fileName | string | The name of the file to look for. |
| recursive | bool | Specifies whether the directory should be searched recursively. |
Return Value
| Type | Description |
|---|---|
| string | The absolute path to the specified file, or null if the file was not found. |
