| NAnt  Help  Function Reference  directory::get-parent-directory | v0.85 | 
Retrieves the parent directory of the specified path.
string directory::get-parent-directory(path)
            
    
    | Name | Type | Description | 
|---|---|---|
| path | string | The path for which to retrieve the parent directory. | 
Copy "readme.txt" from the current working directory to its parent directory.
<property name="current.dir" value="${directory::get-current-directory()}" />
<property name="current.dir.parent" value="${directory::get-parent-directory(current.dir)}" />
<copy file="${path::combine(current.dir, 'readme.txt')} todir="${current.dir.parent}" />