Testing for Existence of a Folder with NAnt November, 2007
Testing for the existence of a folder with NAnt is pretty simple. The only caveat is that you reference parameters without the ${} qualifier. You can also concatenate strings, building the path dynamically...
As a side note; if you plan on passing a path into an exec as a parameter remember to quote it with the " HTML entity: