Skip to content

raylib.GetFileNameWithoutExt

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get the file name at the end of a path, without its last extension

Parameters

Parameter Default Value Note
filePath

Return value

Condition Return Value
(always) string

Notes

Example

base = raylib.GetFileNameWithoutExt("assets/sprites/hero.png")
print "Base name: " + base   // prints "hero"

Clone this wiki locally