basename

Gets the name of the file without any leading directory components. It returns a pointer into the given file name string.

More...
string
basename
(
string fileName
)

Parameters

fileName string

the name of the file

Return Value

Type: string

the name of the file without any leading directory components

Detailed Description

Deprecated: Use glib.global.pathGetBasename instead, but notice that glib.global.pathGetBasename allocates new memory for the returned string, unlike this function which returns a pointer into the argument.