Skip to content

raylib.ChangeDirectory

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Change working directory, returns true on success

Parameters

Parameter Default Value Note
dirPath

Return value

Condition Return Value
(always) number

Notes

Example

success = raylib.ChangeDirectory("/home/user/myproject")
if success then
    print "Directory changed."
else
    print "Failed to change directory."
end if

Clone this wiki locally