NAnt SDK Documentation - v0.92 |

# CopyTask.FileOperation.TargetIsOutdated Method

Checks to see if a given FileSystemInfo target is considered outdated.

[Visual Basic]
Public Shared Function TargetIsOutdated( _
ByVal source As FileSystemInfo, _
ByVal target As FileSystemInfo _
) As Boolean
[C#]
public static bool TargetIsOutdated(
FileSystemInfo source,
FileSystemInfo target
);

#### Parameters

source
  A FileSystemInfo used for comparison purposes against target.
target
  The FileSystemInfo to check.

#### Return Value

`true` if the target file is considered out of date; otherwise `false`

#### See Also

CopyTask.FileOperation Class | NAnt.Core.Tasks Namespace