NAnt SDK Documentation - v0.92 |

# FileFunctions.UpToDate Method

Determines whether targetFile is more or equal up-to-date than srcFile.

[Visual Basic]
<Function(Name:="up-to-date")>
Public Function UpToDate( _
ByVal srcFile As String, _
ByVal targetFile As String _
) As Boolean
[C#]
[Function(Name="up-to-date")]
public bool UpToDate(
string srcFile,
string targetFile
);

#### Parameters

srcFile
  The file to check against the target file.
targetFile
  The file for which we want to determine the status.

#### Return Value

true if targetFile is more or equal up-to-date than srcFile; otherwise, false.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | srcFile or targetFile is a zero-length string, contains only white space, or contains one or more invalid characters.
PathTooLongException | The specified path, file name, or both of either srcFile or targetFile exceed the system-defined maximum length.

#### See Also

FileFunctions Class | NAnt.Core.Functions Namespace