fileExtension function

Syntax

  • string fileExtension(filePath)

Parameters

  1. filePath—string

Returns

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

Description

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

Related

Examples

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

In this topic