path::get-file-name

Returns the filename for the specified path string.
string path::get-file-name(path)

Parameters

Name Type Description
path string The path string from which to obtain the file name and extension.

Return Value

A string consisting of the characters after the last directory character in path.

If the last character of path is a directory or volume separator character, an empty string is returned.

Requirements

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