Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print"Witch drive would you like to format?"
- local installdir = read()
- if fs.exists(installdir) then
- local files = fs.list(installdir)
- for i=1, #files, 1 do
- if files[i] ~= "rom" then
- fs.delete(installdir .. files[i])
- end
- end
- print"Complete!"
- else
- print(installdir.." is not a directory!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement