NAnt SDK Documentation - v0.92 |

# FileUtils.ResolveFile Method

Scans a list of directories for the specified filename.

[Visual Basic]
Public Shared Function ResolveFile( _
ByVal directories As String(), _
ByVal fileName As String, _
ByVal recursive As Boolean _
) As String
[C#]
public static string ResolveFile(
string[] directories,
string fileName,
bool recursive
);

#### Parameters

directories
  The list of directories to search.
fileName
  The name of the file to look for.
recursive
  Specifies whether the directory should be searched recursively.

#### Return Value

The absolute path to the specified file, or null if the file was not found.

#### Remarks

The directories are scanned in the order in which they are defined.

#### See Also

FileUtils Class | NAnt.Core.Util Namespace