Summary
Determines whether the given path refers to an existing directory
on disk.
Syntax
[Function("exists")]
public bool Exists(string path)
Examples
Remove directory "test", if it exists.
<delete dir="test" if="${directory::exists('test')}" />
Attributes
| Type |
Description |
| FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
| Name |
Type |
Description |
| path |
string |
The path to test. |
Return Value
| Type |
Description |
| bool |
true if path refers to an
existing directory; otherwise, false.
|