fileExtension function

Syntax

  • string fileExtension(string path)

Returns

Returns file extension ("suffix") of given file path.

Description

The fileExtension function returns file extension ("suffix") of the given file path.

Related

Examples

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

In this topic