directory::get-name

[This is preliminary documentation and subject to change.]

Retrieves the directory name of the specified path.

Usage

string directory::get-name(path)

Parameters

Name Type Description
path string The directory's full path. The path parameter can be a file name, including a file on a Universal Naming Convention (UNC) share.

Return Value

A string containing the name of the directory.

Exceptions

The function will fail in any of the following circumstances:

Examples

Requirements

Assembly: NAnt.Core (0.93.5521.0)