Posted 10 May 2012 - 05:51 PM
Long story short, how would you create a disk to basically wipe a computer?
for _,file in ipairs(fs.list("/")) do
if not fs.isReadOnly(file) then
fs.delete(file)
end
end
It's not tested, but it should delete every file and directory in the root directory, leaving only the rom folder (wich can't be deleted).