Skip to content

os.chdir

Jason Perkins edited this page May 15, 2015 · 3 revisions

The os.chdir function changes the current working directory.

ok, err = os.chdir("path")

Parameters

path is the file system path to the new working directory.

Return Value

True if successful, otherwise nil and an error message.

See Also

Clone this wiki locally