DirectoryFunctions.

GetDirectoryRoot(string) Method

Summary

Returns the volume information, root information, or both for the specified path.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
DirectoryFunctions

Syntax

[Function("get-directory-root")]
public string GetDirectoryRoot(string path)

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Parameters

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

Return Value

Type Description
string A string containing the volume information, root information, or both for the specified path.