Advertisement
nintendowfi

Untitled

Mar 21st, 2021
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. local files = fs.list( "/" ) --# all the files and folders in the directory '/' --> main
  2. for i = 1, #files do
  3. if files[i] ~= "rom" then --# You cannot delete rom
  4. fs.delete( files[i] )
  5. end
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement