shell.dir

From ComputerCraft
Jump to navigation Jump to search

shell.dir
Function
Syntax
shell.dir()
Returns string path
API shell
Source CC:Tweaked

Returns the current shell working directory. Set by shell.setDir programmatically or the cd command from the shell itself. The working directory is displayed before the > of the shell prompt, and is used as the first component of relative paths by programs such as ls.

Error creating thumbnail: Unable to save thumbnail to destination
ExamplePrint the current working directory.
Code
print(shell.dir())
Output Path of the current working directory.