Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if #args < 2 then
- print("Uso: mv <file> <nome>")
- return
- end
- cdir = shell.resolve(args[1])
- ncdir = shell.resolve(args[2])
- file = fs.open(cdir, "r")
- cont = file.readAll()
- file.close()
- file = fs.open(ncdir, "w")
- file.write(cont)
- file.close()
- fs.delete(cdir)
Advertisement
Add Comment
Please, Sign In to add comment