shell.dir
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.
|
|||
| Code | <nowiki>
print(shell.dir())
</nowiki>
|
||
| Output | Path of the current working directory. | ||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| shell.dir Function | |
|---|---|
|
Syntax shell.dir() | |
| Returns | string path |
| API | shell |
| Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.