This function changes the current directory. Relative file paths will be loaded from the new directory.
Parameter | Description |
---|---|
path | the file path to use |
Returns true
if the directory was successfully changed, otherwise false
is returned.
-- Print starting directory
print(CurrentDir())
-- Navigate up one directory level
ChangeDir("..")
-- Print new directory
print(CurrentDir())