Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Clearing app data — Gideros Forum

Clearing app data

ar2rsawseenar2rsawseen Maintainer
edited April 2014 in General questions
Here is a simple way to clear your app data:

I usually define it as clear.lua and add to my project but exclude from execution.
And when I need to clear the app data, I either include it in execution or require in main.lua and run project:
if not lfs then
	require "lfs"
end
 
function listdir (path)
	for file in lfs.dir(path) do
		if file ~= "." and file ~= ".." then
			local f = path..file
			print (f)
			os.remove(f)
		end
	end
end
 
listdir ("|D|")

Comments

Sign In or Register to comment.