Determines whether the given path refers to an existing directory
on disk.
bool directory::exists(path)
Parameters
Name | Type | Description |
---|---|---|
path | string | The path to test. |
Return Value
true
if path refers to an
existing directory; otherwise, false
.
Examples
Remove directory "test", if it exists.
<delete dir="test" if="${directory::exists('test')}" />
Requirements
- Assembly
- NAnt
.Core .dll - Namespace
-
NAnt
.Core .Functions