Lua
C++
Edit

ChangeDir

This function changes the current directory. Relative file paths will be loaded from the new directory.

Syntax

Parameter Description
path the file path to use

Returns

Returns true if the directory was successfully changed, otherwise false is returned.

Example

-- Print starting directory
print(CurrentDir())

-- Navigate up one directory level
ChangeDir("..")

-- Print new directory
print(CurrentDir())
Copyright © 2024 Ultra Software.
All rights reserved.