NAnt SDK Documentation - v0.92 |

# CopyTask.FileOperation.TargetDirectoryDoesNotExist Method

Checks to see if the target directory does not exist or that it does match the source directory name but not string casing.

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

#### Parameters

source
  Source directory to check against target.
target
  The target directory to validate.

#### Return Value

`true` if the target directory does not exist or matches the source directory name but not casing; otherwise `false`

#### See Also

CopyTask.FileOperation Class | NAnt.Core.Tasks Namespace