Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = ...
- if args==nil then
- args = ""
- end
- if not type(args)=="string" then
- term.setTextColor(colors.red)
- print("The selected path must be a single string")
- term.setTextColor(colors.white)
- return
- end
- if not fs.exists(args) then
- term.setTextColor(colors.red)
- print("The selected path doesn't exist")
- term.setTextColor(colors.white)
- return
- end
- shell.setDir(args)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement