Determines whether the given path refers to an existing directory on disk.
true if path refers to an existing directory; otherwise, false.
Remove directory "test", if it exists.
<delete dir="test" if="${directory::exists('test')}" />
DirectoryFunctions Class | NAnt.Core.Functions Namespace