LolzPB

rm

May 21st, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. args = {...}
  2.  
  3. if #args < 1 then
  4. print("Uso: rm <directory>")
  5. return
  6. end
  7.  
  8. if fs.exists(shell.resolve(args[1])) then
  9. fs.delete(shell.resolve(args[1]))
  10. else
  11. print("File non trovato")
  12. end
Add Comment
Please, Sign In to add comment