Skip to content

raylib.IsPathFile

JoeStrout edited this page Oct 17, 2026 · 3 revisions

Check if provided 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