Path.GetFileName Manual     Reference     Scripting  
Scripting > Runtime Classes > Path
Path.GetFileName

static function GetFileName (path : string) : string

Description

Returns the file name, including the extension if any, of the specified path string.

The return value consists of the characters after the last directory character in path. If the last character of path is a directory separator character, returns an empty string.