shell.setDir

From ComputerCraft
Jump to navigation Jump to search

shell.setDir
Function
Syntax
shell.setDir()
Returns nil
API shell
Source CC:Tweaked (source)

Sets the current shell directory. Throws a error, if the directory are not exists. You can get the current shell directory with shell.dir.

ExampleExampleSet the current shell directory.
Set the current shell directory to "/rom".
Code
shell.setDir("/rom")