Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- if #tArgs < 1 then
- print( "Usage: cd <path>" )
- return
- end
- local sNewDir = shell.resolve( tArgs[1] )
- if fs.isDir( sNewDir ) then
- if tArgs[2] == "OS" then print("Not a directory")
- else
- shell.setDir( sNewDir )
- end
- else
- print( "Not a directory" )
- return
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement