path::get-extension

Returns the extension for the specified path string.
string path::get-extension(path)

Parameters

Name Type Description
path string The path string from which to get the extension.

Return Value

A string containing the extension of the specified path (including the "."), or an empty string if path does not have extension information.

Requirements

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