fileBasename function

string fileBasename(filePath)

filePath string

Returns the file base name of the given filePath, without the directory prefix and file extension.

This function returns the file base name (without the directories or extension) of the given filePath.

Related

Examples

Example

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