shell.setDir

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

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

shell.setDir
Function
Syntax
shell.setDir(
  • path : string
)

Returns nil
API shell
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.