Skip to content

raylib.GetDirectoryPath

JoeStrout edited this page Nov 16, 2026 · 3 revisions

Get the directory part of a file path

Parameters

Parameter Default Value Note
filePath

Return value

Condition Return Value
(always) string

Notes

Example

dir = raylib.GetDirectoryPath("assets/sprites/hero.png")
print "Directory: " + dir   // prints "assets/sprites"

Clone this wiki locally