Syntax
- string fileName(filePath)
Parameters
- filePath—string
Returns
Returns file name of givenfilePath.
Description
The fileName 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"