Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = { ... }
- if #args == 1 then
- local fname = args[1]
- local sPath = shell.resolveProgram(fname)
- if sPath then
- print(sPath)
- else
- printError('File not found in ' .. shell.path())
- end
- else
- printError('syntax: touch <filename>')
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement