Skip to content

raylib.IsPathFile

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Check if a given path point to a file

Parameters

Parameter Default Value Note
path

Return value

Condition Return Value
(always) number

Notes

Example

path = raylib.GetWorkingDirectory
if raylib.IsPathFile(path) then
    print path + " is a file"
else
    print path + " is a directory"
end if

Clone this wiki locally