Home > [Scripting Reference](Scripting Reference) > os.chdir
The os.chdir function changes the current working directory.
#!lua os.chdir("path")
path is the file system path to the new working directory.
True if successful, otherwise nil and an error message.
There was an error while loading. Please reload this page.