directory::get-parent-directory

[This is preliminary documentation and subject to change.]

Retrieves the parent directory of the specified path.

Usage

string directory::get-parent-directory(path)

Parameters

Name Type Description
path string The path for which to retrieve the parent directory.

Return Value

The parent directory, or an empty String if path is the root directory, including the root of a UNC server or share name.

Exceptions

The function will fail in any of the following circumstances:

Examples

Requirements

Assembly: NAnt.Core (0.92.4526.0)