fileName function

string fileName(filePath)

filePath string

Returns the file name of the given filePath.

This function returns the file name (without the directory part) of the given filePath.

Related

Examples

fileName("assets/obj/mygeometry.01.obj")
# result = "mygeometry.01.obj"