path::get-path-root

Gets the root directory of the specified path.
string path::get-path-root(path)

Parameters

Name Type Description
path string The path from which to obtain root directory information.

Return Value

A string containing the root directory of path, such as "C:\", or an empty string if path does not contain root directory information.

Requirements

Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions